public function getRedirectResponse(string $routeName, array $routeParameters = []): RedirectResponse
    {
        $url = $this->router->generate($routeName, $routeParameters);

        return new RedirectResponse($url);
    }
public function getRedirectResponse(string $routeName, array $routeParameters = []): RedirectResponse
    {
        $url = $this->router->generate($routeName, $routeParameters);

        return new RedirectResponse($url);
    }
public function getRedirectResponse ( string $ routeName , array $ routeParameters = [ ] ) : RedirectResponse { $ url = $ this -> router -> generate ( $ routeName , $ routeParameters ) ; return new RedirectResponse ( $ url ) ; }
Returns the "redirect response" that is used to redirect to url generated by given route and parameters

@param string $routeName       The name of the route. Used to build url used for redirection.
@param array  $routeParameters (optional) An array of parameters. Used to build url used for redirection.
@return RedirectResponse
Returns the redirect response that is used to redirect to url generated by given route and parameters