/**
  * {@inheritdoc}
  */
 public function compareAutoRouteContent(AutoRouteInterface $autoRoute, $contentDocument)
 {
     if ($autoRoute->getContent() === $contentDocument) {
         return true;
     }
     return false;
 }
 /**
  * @param AutoRouteInterface $routeDocument
  */
 public function redirectAction(AutoRouteInterface $routeDocument)
 {
     $routeTarget = $routeDocument->getRedirectTarget();
     $url = $this->router->generate($routeTarget);
     return new RedirectResponse($url, 302);
 }
예제 #3
0
 public function redirectAction(AutoRouteInterface $routeDocument)
 {
     $routeTarget = $routeDocument->getRedirectTarget();
     return $this->redirect($this->get('router')->generate($routeTarget));
 }