refactor(kernel): unify HTTP and CLI application lifecycle
Signed-off-by: Sebastian Krupinski <krupinski01@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace KTXF\Security;
|
||||
|
||||
use KTXC\SessionTenant;
|
||||
use KTXC\Context\TenantContextInterface;
|
||||
use phpseclib3\Crypt\AES;
|
||||
|
||||
/**
|
||||
@@ -27,7 +27,7 @@ class Crypto
|
||||
private const ENCODING_HEADER_VERSION = 1;
|
||||
private const ENCODING_HEADER_LEN = 14;
|
||||
|
||||
public function __construct(protected SessionTenant $sessionTenant)
|
||||
public function __construct(protected TenantContextInterface $tenantContext)
|
||||
{ }
|
||||
|
||||
/**
|
||||
@@ -136,7 +136,7 @@ class Crypto
|
||||
|
||||
private function tenantSecret(): ?string
|
||||
{
|
||||
$config = $this->sessionTenant->configuration();
|
||||
$config = $this->tenantContext->configuration();
|
||||
return $config->security()->code();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user