Commit 8772cbca authored by Fabien Potencier's avatar Fabien Potencier

moved the before middleware to always be run after the app middlewares

parent 63e24c54
......@@ -88,7 +88,8 @@ class MiddlewareListener implements EventSubscriberInterface
public static function getSubscribedEvents()
{
return array(
KernelEvents::REQUEST => array('onKernelRequest', -128),
// this must be executed after the late events defined with before() (and their priority is 512)
KernelEvents::REQUEST => array('onKernelRequest', -1024),
KernelEvents::RESPONSE => array('onKernelResponse', 128),
);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment