Skip to content

Commit a859e36

Browse files
committed
Fixed the priority of the sticky locale example
1 parent 31c0227 commit a859e36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

session/locale_sticky_session.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ how you determine the desired locale from the request::
5454
public static function getSubscribedEvents()
5555
{
5656
return array(
57-
// must be registered after the default Locale listener
58-
KernelEvents::REQUEST => array(array('onKernelRequest', 15)),
57+
// must be registered before (i.e. with a higher priority than) the default Locale listener
58+
KernelEvents::REQUEST => array(array('onKernelRequest', 20)),
5959
);
6060
}
6161
}

0 commit comments

Comments
 (0)