mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 00:24:08 +01:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user