diff --git a/module/Application/src/Service/PrivilegeService.php b/module/Application/src/Service/PrivilegeService.php index daacc51368aa861b6175dc096813bd42d464c0ef..69592ad40fcd2dd5a643b7f64273bad03de04ed6 100755 --- a/module/Application/src/Service/PrivilegeService.php +++ b/module/Application/src/Service/PrivilegeService.php @@ -2,7 +2,6 @@ namespace Application\Service; -use Application\Cache\Traits\CacheContainerTrait; use Application\Entity\Db\Privilege; use Application\Entity\Db\Role; use Application\Provider\Privilege\Privileges; @@ -24,7 +23,6 @@ class PrivilegeService implements PrivilegeProviderInterface, ProviderInterface use EntityManagerAwareTrait; use ContextServiceAwareTrait; use StatutServiceAwareTrait; - use CacheContainerTrait; private array $privilegesCache = []; @@ -77,8 +75,8 @@ class PrivilegeService implements PrivilegeProviderInterface, ProviderInterface */ public function getPrivilegesRoles() { - if (empty($this->privilegesCache)) { - $this->privilegesCache = $this->getCacheContainer()->privilegesRoles('makePrivilegesRoles'); + if (empty($this->privilegesCache)){ + $this->privilegesCache = $this->makePrivilegesRoles(); } return $this->privilegesCache; }