mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-03 07:04:07 +01:00
chore: Bootstrap refactoring
Signed-off-by: Rubén D <nuxsmin@syspass.org>
This commit is contained in:
@@ -24,36 +24,27 @@
|
||||
|
||||
namespace SP\Mvc\Controller;
|
||||
|
||||
|
||||
use Klein\Klein;
|
||||
use SP\Core\PhpExtensionChecker;
|
||||
use SP\Domain\Core\Acl\AclInterface;
|
||||
use SP\Domain\Core\Bootstrap\UriContextInterface;
|
||||
use SP\Domain\Core\UI\ThemeInterface;
|
||||
use SP\Domain\Http\RequestInterface;
|
||||
|
||||
/**
|
||||
* Class SimpleControllerHelper
|
||||
*/
|
||||
final class SimpleControllerHelper
|
||||
final readonly class SimpleControllerHelper
|
||||
{
|
||||
private ThemeInterface $theme;
|
||||
private Klein $router;
|
||||
private AclInterface $acl;
|
||||
private RequestInterface $request;
|
||||
private PhpExtensionChecker $extensionChecker;
|
||||
|
||||
public function __construct(
|
||||
ThemeInterface $theme,
|
||||
Klein $router,
|
||||
AclInterface $acl,
|
||||
RequestInterface $request,
|
||||
PhpExtensionChecker $extensionChecker
|
||||
private ThemeInterface $theme,
|
||||
private Klein $router,
|
||||
private AclInterface $acl,
|
||||
private RequestInterface $request,
|
||||
private PhpExtensionChecker $extensionChecker,
|
||||
private UriContextInterface $uriContext
|
||||
) {
|
||||
$this->theme = $theme;
|
||||
$this->router = $router;
|
||||
$this->acl = $acl;
|
||||
$this->request = $request;
|
||||
$this->extensionChecker = $extensionChecker;
|
||||
}
|
||||
|
||||
public function getTheme(): ThemeInterface
|
||||
@@ -80,4 +71,9 @@ final class SimpleControllerHelper
|
||||
{
|
||||
return $this->extensionChecker;
|
||||
}
|
||||
|
||||
public function getUriContext(): UriContextInterface
|
||||
{
|
||||
return $this->uriContext;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user