Exemple #1
0
 /**
  * Do nothing and redirect to the page manager
  */
 public function onPageAction(GadgetPageActionEvent $event)
 {
     $page = $event->getPage();
     $url = $this->container->get('router')->getGenerator()->generate('keosu_core_views_page_manage');
     if ($page->getName() === KeosuGadgetAuthenticationGadgetBundle::AUTHENTICATION_PAGE_NAME && $page->getTemplateId() == KeosuGadgetAuthenticationGadgetBundle::AUTHENTICATION_TEMPLATE_ID) {
         $event->setResponce(new RedirectResponse($url));
     }
 }