src/TrivialSense/FrameworkCommon/Controller/AbstractController.php
public function redirectToPath($path, $parameters = array())
    {
        $route = $this->getRouter()->generate($path, $parameters);

        return $this->redirect($route);
    }
public function redirectToPath($path, $parameters = array())
    {
        $route = $this->getRouter()->generate($path, $parameters);

        return $this->redirect($route);
    }
public function redirectToPath ( $ path , $ parameters = array ( ) ) { $ route = $ this -> getRouter ( ) -> generate ( $ path , $ parameters ) ; return $ this -> redirect ( $ route ) ; }
Returns a ResponseRedirect to a given route name

@param $path
@param array $parameters

@return \Symfony\Component\HttpFoundation\RedirectResponse
Returns a ResponseRedirect to a given route name