X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6be82a837fde1a6098a34304b129292a2bc6b738..0d73719ae77b54f49a02292f708854c74f4db7ad:/EventSubscriber/LocaleSubscriber.php?ds=sidebyside 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; }