parent
35d2f87bff
commit
c37a19102d
@ -0,0 +1,72 @@ |
||||
<?php |
||||
|
||||
/* For licensing terms, see /license.txt */ |
||||
|
||||
declare(strict_types=1); |
||||
|
||||
namespace Chamilo\CoreBundle\ServiceHelper; |
||||
|
||||
use Symfony\Component\HttpKernel\KernelInterface; |
||||
use Symfony\Component\Messenger\MessageBusInterface; |
||||
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface; |
||||
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface; |
||||
use Symfony\Component\Validator\Validator\ValidatorInterface; |
||||
|
||||
class ContainerHelper |
||||
{ |
||||
private AuthorizationCheckerInterface $authorizationChecker; |
||||
private TokenStorageInterface $tokenStorage; |
||||
private KernelInterface $kernel; |
||||
private MessageBusInterface $messengerBus; |
||||
private ValidatorInterface $validator; |
||||
|
||||
public function getAuthorizationChecker(): AuthorizationCheckerInterface |
||||
{ |
||||
return $this->authorizationChecker; |
||||
} |
||||
|
||||
public function setAuthorizationChecker(AuthorizationCheckerInterface $authorizationChecker): void |
||||
{ |
||||
$this->authorizationChecker = $authorizationChecker; |
||||
} |
||||
|
||||
public function getTokenStorage(): TokenStorageInterface |
||||
{ |
||||
return $this->tokenStorage; |
||||
} |
||||
|
||||
public function setTokenStorage(TokenStorageInterface $tokenStorage): void |
||||
{ |
||||
$this->tokenStorage = $tokenStorage; |
||||
} |
||||
|
||||
public function getKernel(): KernelInterface |
||||
{ |
||||
return $this->kernel; |
||||
} |
||||
|
||||
public function setKernel(KernelInterface $kernel): void |
||||
{ |
||||
$this->kernel = $kernel; |
||||
} |
||||
|
||||
public function getMessengerBus(): MessageBusInterface |
||||
{ |
||||
return $this->messengerBus; |
||||
} |
||||
|
||||
public function setMessengerBus(MessageBusInterface $messengerBus): void |
||||
{ |
||||
$this->messengerBus = $messengerBus; |
||||
} |
||||
|
||||
public function getValidator(): ValidatorInterface |
||||
{ |
||||
return $this->validator; |
||||
} |
||||
|
||||
public function setValidator(ValidatorInterface $validator): void |
||||
{ |
||||
$this->validator = $validator; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue