Commit bedb9895 authored by Fabien Potencier's avatar Fabien Potencier

minor #899 Typo in comment, LATE_EVENT is -512 not 512 (Danez)

This PR was merged into the 1.2.x-dev branch.

Discussion
----------

Typo in comment, LATE_EVENT is -512 not 512

Commits
-------

46d20b82 Typo in comment, LATE_EVENT is -512 not 512
parents 8bf87c9d 46d20b82
...@@ -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