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