X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6be82a837fde1a6098a34304b129292a2bc6b738..65f27dbf80e7370bfe73c68c7faa1d9ee8a1564d:/EventSubscriber/LocaleSubscriber.php?ds=inline diff --git a/EventSubscriber/LocaleSubscriber.php b/EventSubscriber/LocaleSubscriber.php index 29417a7..2d25ba6 100644 --- a/EventSubscriber/LocaleSubscriber.php +++ b/EventSubscriber/LocaleSubscriber.php @@ -51,18 +51,6 @@ class LocaleSubscriber implements EventSubscriberInterface { //Set back router context $this->router->setContext($context); - //Generate current route with preferred language - //XXX: may trigger a Symfony\Component\Routing\Exception\RouteNotFoundException if route is not found for preferred locale - /*$uri = $this->router->generate( - //Current route - $request->get('_route'), - //Force preferred locale - ['_locale' => $preferred]+$request->get('_route_params') - ); - - //Regenerate route with preferred locale - $event->setResponse(new RedirectResponse($uri, 302));*/ - //End process return; }