]> Raphaƫl G. Git Repositories - airbundle/blobdiff - EventSubscriber/LocaleSubscriber.php
Cleanup
[airbundle] / EventSubscriber / LocaleSubscriber.php
index 29417a726e0222d4fbd8cd78d81d9501dff7acaf..2d25ba6d714c61f36f58586e63a6636cae75d280 100644 (file)
@@ -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;
                        }