Skip to content


Subversion checkout URL

You can clone with
Download ZIP


[WIP] adjust kernel.controller listener priority #420

merged 1 commit into from

3 participants


I'm leaving it at -10 to match framework extra bundle's priorities until
#412 is solved.
Or should i go ahead and add a wider variance now?

@jrobeson jrobeson adjust kernel.controller listener priority
change it to -10 to match the change to sensio/framework-extra-bundle

note : i don't use FOSRestBundle, so i don't actually know which order ends up being in effect. thus the WIP.


The priority in framework extra bundle is actually at -128. But any strictly negative priority is OK since this listener only needs to be called after framework extra's ControllerListener which has a priority of 0.


@adriensamson : it's -10 in master.

@lsmith77 lsmith77 merged commit 7cc3882 into FriendsOfSymfony:master

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 5, 2013
  1. @jrobeson

    adjust kernel.controller listener priority

    jrobeson committed
    change it to -10 to match the change to sensio/framework-extra-bundle
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  Resources/config/view_response_listener.xml
2  Resources/config/view_response_listener.xml
@@ -7,7 +7,7 @@
<service id="fos_rest.view_response_listener" class="FOS\RestBundle\EventListener\ViewResponseListener">
- <tag name="kernel.event_listener" event="kernel.controller" method="onKernelController" />
+ <tag name="kernel.event_listener" event="kernel.controller" method="onKernelController" priority="-10" />
<tag name="kernel.event_listener" event="kernel.view" method="onKernelView" priority="100" />
<argument type="service" id="service_container" />
Something went wrong with that request. Please try again.