Bundle/I18nBundle/Route/I18nRouteLoader.php
protected function addHomepageRedirection(&$collection)
    {
        $route = new Route(
            '/',
            [
                '_controller' => 'FrameworkBundle:Redirect:urlRedirect',
                'path'        => '/'.$this->localeResolver->defaultLocale,
                'permanent'   => true,
            ]
        );

        $collection->add('victoire_redirect_homepage', $route);
    }
protected function addHomepageRedirection(&$collection)
    {
        $route = new Route(
            '/',
            [
                '_controller' => 'FrameworkBundle:Redirect:urlRedirect',
                'path'        => '/'.$this->localeResolver->defaultLocale,
                'permanent'   => true,
            ]
        );

        $collection->add('victoire_redirect_homepage', $route);
    }
protected function addHomepageRedirection ( & $ collection ) { $ route = new Route ( '/' , [ '_controller' => 'FrameworkBundle:Redirect:urlRedirect' , 'path' => '/' . $ this -> localeResolver -> defaultLocale , 'permanent' => true , ] ) ; $ collection -> add ( 'victoire_redirect_homepage' , $ route ) ; }
Add a homepage redirection route to the collection.

@param RouteCollection $collection The collection where to add the new route
Add a homepage redirection route to the collection .