Permalink
Browse files

ensure that the locale is set before the routing (fixes #22)

  • Loading branch information...
1 parent 6756a52 commit 2413426ba33cf3da38f72c17f967c4b5f413bfa6 @lsmith77 lsmith77 committed Oct 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 EventListener/LocaleListener.php
@@ -61,7 +61,7 @@ public function onKernelRequest(GetResponseEvent $event)
static public function getSubscribedEvents()
{
return array(
- KernelEvents::REQUEST => array(array('onKernelRequest', 1)),
+ KernelEvents::REQUEST => array(array('onKernelRequest', 35)),
);
}

1 comment on commit 2413426

Member

lsmith77 commented on 2413426 Oct 21, 2012

ok this doesnt fly because the core LocaleListener is triggered at 16:
https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/EventListener/LocaleListener.php#L54

so i will revert to 1 for now ..

Please sign in to comment.