Ojs\AdminBundle\Controller\AdminController::dashboardAction PHP 메소드

dashboardAction() 공개 메소드

public dashboardAction ( ) : RedirectResponse | Response
리턴 Symfony\Component\HttpFoundation\RedirectResponse | Symfony\Component\HttpFoundation\Response
    public function dashboardAction()
    {
        if ($this->isGranted('VIEW', new Journal())) {
            $switcher = $this->createForm(new QuickSwitchType(), null)->createView();
            return $this->render('OjsAdminBundle:Admin:dashboard.html.twig', ['switcher' => $switcher]);
        } else {
            return $this->redirect($this->generateUrl('ojs_user_index'));
        }
    }