refactor: Remove unneeded code form base controllers and improve traits decoupling.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-06-12 17:00:19 +02:00
parent 60be265652
commit 94fdfcede9
9 changed files with 72 additions and 203 deletions

View File

@@ -96,6 +96,8 @@ final class IndexController extends ControllerBase
) {
parent::__construct($application, $webControllerHelper);
$this->checkLoggedIn();
$this->tabsHelper = $tabsHelper;
$this->userService = $userService;
$this->userGroupService = $userGroupService;
@@ -590,13 +592,4 @@ final class IndexController extends ControllerBase
{
return $this->tabsHelper;
}
/**
* @throws \SP\Core\Exceptions\SessionTimeout
* @throws \SP\Domain\Auth\Services\AuthException
*/
protected function initialize(): void
{
$this->checkLoggedIn();
}
}