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