浏览代码

[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.
Christophe Coevoet 14 年之前
父节点
当前提交
87391119be
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.xml

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/Resources/config/profiling.xml

@@ -24,7 +24,7 @@
         </service>
 
         <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="onCoreRequest" />
             <argument type="service" id="service_container" />