. */ namespace SP\Modules\Web\Controllers; use SP\Modules\Web\Controllers\Helpers\LayoutHelper; /** * Class IndexController * * @package SP\Modules\Web\Controllers */ final class IndexController extends ControllerBase { /** * Index action * * @throws \Psr\Container\ContainerExceptionInterface * @throws \Psr\Container\NotFoundExceptionInterface */ public function indexAction() { if (!$this->session->isLoggedIn()) { $this->router->response() ->redirect('index.php?r=login'); } else { $this->dic->get(LayoutHelper::class)->getFullLayout('main', $this->acl); $this->view(); } } }