chore: Bootstrap refactoring.

Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
Rubén D
2022-06-26 12:30:22 +02:00
parent 55d54a6518
commit f56bfc22f4
5 changed files with 31 additions and 45 deletions

View File

@@ -29,6 +29,7 @@ defined('APP_ROOT') || die();
use Exception;
use SP\Core\Acl\Acl;
use SP\Core\Application;
use SP\Core\Bootstrap\BootstrapBase;
use SP\Core\Context\ContextInterface;
use SP\Core\Crypt\Hash;
use SP\Core\Events\EventDispatcher;
@@ -72,6 +73,7 @@ abstract class ControllerBase
protected bool $isAjax;
protected LayoutHelper $layoutHelper;
private BrowserAuthInterface $browser;
protected string $actionName;
public function __construct(
Application $application,
@@ -93,6 +95,7 @@ abstract class ControllerBase
$this->view->setBase($this->getViewBaseName());
$this->isAjax = $this->request->isAjax();
$this->actionName = $this->session->getTrasientKey(BootstrapBase::CONTEXT_ACTION_NAME);
$loggedIn = $this->session->isLoggedIn();