Commit 46d20b82 authored by Daniel Tschinder's avatar Daniel Tschinder

Typo in comment, LATE_EVENT is -512 not 512

parent 7b546347
...@@ -88,7 +88,7 @@ class MiddlewareListener implements EventSubscriberInterface ...@@ -88,7 +88,7 @@ class MiddlewareListener implements EventSubscriberInterface
public static function getSubscribedEvents() public static function getSubscribedEvents()
{ {
return array( return array(
// this must be executed after the late events defined with before() (and their priority is 512) // this must be executed after the late events defined with before() (and their priority is -512)
KernelEvents::REQUEST => array('onKernelRequest', -1024), KernelEvents::REQUEST => array('onKernelRequest', -1024),
KernelEvents::RESPONSE => array('onKernelResponse', 128), 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