コード例 #1
0
 /**
  * {@inheritdoc}
  */
 public function compareAutoRouteContent(AutoRouteInterface $autoRoute, $contentDocument)
 {
     if ($autoRoute->getContent() === $contentDocument) {
         return true;
     }
     return false;
 }
コード例 #2
0
 /**
  * @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));
 }