*/ interface RedirectRouteInterface extends RouteObjectInterface { /** * Get the absolute uri to redirect to external domains. * * If this is non-empty, the other methods won't be used. * * @return string target absolute uri */ public function getUri(); /** * Get the target route document this route redirects to. * * If non-null, it is added as route into the parameters, which will lead * to have the generate call issued by the RedirectController to have * the target route in the parameters. * * @return RouteObjectInterface the route this redirection points to */ public function getRouteTarget(); /** * Get the name of the target route for working with the symfony standard * router. * * @return string target route name */ public function getRouteName(); /** * Whether this should be a permanent or temporary redirect. * * @return bool */ public function isPermanent(); /** * Get the parameters for the target route router::generate(). * * Note that for the DynamicRouter, you return the target route * document as field 'route' of the hashmap. * * @return array Information to build the route */ public function getParameters(); }