[FrameworkBundle] Changed the priority of the ProfilerListener

Running it before other onCoreResponse listeners avoids seeing them
as called listeners in the event panel. The priority is set to -100
because it has to be called before the WebProfilerListener (-128) so
that the token is set.
This commit is contained in:
Christophe Coevoet 2011-05-07 20:40:30 +02:00
parent f3b077a0dd
commit 87391119be

View File

@ -24,7 +24,7 @@
</service> </service>
<service id="profiler_listener" class="%profiler_listener.class%"> <service id="profiler_listener" class="%profiler_listener.class%">
<tag name="kernel.listener" event="onCoreResponse" /> <tag name="kernel.listener" event="onCoreResponse" priority="-100" />
<tag name="kernel.listener" event="onCoreException" /> <tag name="kernel.listener" event="onCoreException" />
<tag name="kernel.listener" event="onCoreRequest" /> <tag name="kernel.listener" event="onCoreRequest" />
<argument type="service" id="service_container" /> <argument type="service" id="service_container" />