We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16d1f16 commit 5360494Copy full SHA for 5360494
src/DependencyInjection/SentryExtension.php
@@ -200,7 +200,9 @@ private function tagExceptionListener(ContainerBuilder $container): void
200
$subrequestListener = $container->getDefinition(SubRequestListener::class);
201
$subrequestListener->addTag(self::KERNEL_EVENT_LISTENER, [
202
'event' => KernelEvents::REQUEST,
203
- 'method' => $method,
+ 'method' => class_exists(RequestEvent::class)
204
+ ? 'onRequest'
205
+ : 'onKernelRequest',
206
'priority' => '%sentry.listener_priorities.sub_request%',
207
]);
208
}
0 commit comments