Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

[WIP] adjust kernel.controller listener priority #420

Merged
merged 1 commit into from

3 participants

@jrobeson

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
842a794
@jrobeson

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

@adriensamson

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.

@jrobeson

@adriensamson : it's -10 in master.

@lsmith77 lsmith77 merged commit 7cc3882 into from
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 authored
    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
View
2  Resources/config/view_response_listener.xml
@@ -7,7 +7,7 @@
<services>
<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" />
</service>
Something went wrong with that request. Please try again.