/**
  * @param AutoRouteInterface $routeDocument
  */
 public function redirectAction(AutoRouteInterface $routeDocument)
 {
     $routeTarget = $routeDocument->getRedirectTarget();
     $url = $this->router->generate($routeTarget);
     return new RedirectResponse($url, 302);
 }
예제 #2
0
 public function redirectAction(AutoRouteInterface $routeDocument)
 {
     $routeTarget = $routeDocument->getRedirectTarget();
     return $this->redirect($this->get('router')->generate($routeTarget));
 }