]> Raphaël G. Git Repositories - airbundle/commitdiff
Cleanup
authorRaphaël Gertz <git@rapsys.eu>
Mon, 28 Dec 2020 07:42:11 +0000 (08:42 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Mon, 28 Dec 2020 07:42:11 +0000 (08:42 +0100)
EventSubscriber/LocaleSubscriber.php

index 29417a726e0222d4fbd8cd78d81d9501dff7acaf..2d25ba6d714c61f36f58586e63a6636cae75d280 100644 (file)
@@ -51,18 +51,6 @@ class LocaleSubscriber implements EventSubscriberInterface {
                                //Set back router context
                                $this->router->setContext($context);
 
                                //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;
                        }
                                //End process
                                return;
                        }