X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/6be82a837fde1a6098a34304b129292a2bc6b738..33eacc92c6bef01f36a889f743bb61bbd10846c0:/EventSubscriber/LocaleSubscriber.php 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; }