8000 Increased the priority of the profiler request listener · vatson/symfony@e81c710 · GitHub
[go: up one dir, main page]

Skip to content

Commit e81c710

Browse files
committed
Increased the priority of the profiler request listener
If a request listener returns a response before calling the profiler listener, the request will not be added in the stack leading to an error during the handling of the kernel.response event. The profiler listener should ideally be run first.
1 parent 8ca19af commit e81c710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<service id="profiler_listener" class="%profiler_listener.class%">
2727
<tag name="kernel.event_listener" event="kernel.response" method="onKernelResponse" priority="-100" />
2828
<tag name="kernel.event_listener" event="kernel.exception" method="onKernelException" />
29-
<tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" />
29+
<tag name="kernel.event_listener" event="kernel.request" method="onKernelRequest" priority="1000" />
3030
<argument type="service" id="profiler" />
3131
<argument type="service" id="profiler.request_matcher" on-invalid="null" />
3232
<argument>%profiler_listener.only_exceptions%</argument>

0 commit comments

Comments
 (0)
0