class ProfilerListener implements EventSubscriberInterface
ProfilerListener collects data for the current request by listening to the kernel events.
protected | $profiler | ||
protected | $matcher | ||
protected | $onlyException | ||
protected | $onlyMasterRequests | ||
protected | $exception | ||
protected | $profiles | ||
protected | $requestStack | ||
protected | $parents |
__construct(Profiler $profiler, RequestStack $requestStack, RequestMatcherInterface $matcher = null, bool $onlyException = false, bool $onlyMasterRequests = false) | ||
onKernelException(GetResponseForExceptionEvent $event) Handles the onKernelException event. | ||
onKernelResponse(FilterResponseEvent $event) Handles the onKernelResponse event. | ||
onKernelTerminate(PostResponseEvent $event) | ||
static array | getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. |
Profiler | $profiler | A Profiler instance |
RequestStack | $requestStack | A RequestStack instance |
RequestMatcherInterface | $matcher | A RequestMatcher instance |
bool | $onlyException | True if the profiler only collects data when an exception occurs, false otherwise |
bool | $onlyMasterRequests | True if the profiler only collects data when the request is a master request, false otherwise |
Handles the onKernelException event.
GetResponseForExceptionEvent | $event |
Handles the onKernelResponse event.
FilterResponseEvent | $event |
PostResponseEvent | $event |
Returns an array of event names this subscriber wants to listen to.
The array keys are event names and the value can be:
For instance:
array | The event names to listen to |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/HttpKernel/EventListener/ProfilerListener.html