Loading module/Application/src/Service/PrivilegeService.php +1 −3 Changes for module/Application/src/Service/PrivilegeService.php: 1 added line, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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; Loading @@ -24,7 +23,6 @@ class PrivilegeService implements PrivilegeProviderInterface, ProviderInterface use EntityManagerAwareTrait; use ContextServiceAwareTrait; use StatutServiceAwareTrait; use CacheContainerTrait; private array $privilegesCache = []; Loading Loading @@ -78,7 +76,7 @@ class PrivilegeService implements PrivilegeProviderInterface, ProviderInterface public function getPrivilegesRoles() { if (empty($this->privilegesCache)){ $this->privilegesCache = $this->getCacheContainer()->privilegesRoles('makePrivilegesRoles'); $this->privilegesCache = $this->makePrivilegesRoles(); } return $this->privilegesCache; } Loading Loading
module/Application/src/Service/PrivilegeService.php +1 −3 Changes for module/Application/src/Service/PrivilegeService.php: 1 added line, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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; Loading @@ -24,7 +23,6 @@ class PrivilegeService implements PrivilegeProviderInterface, ProviderInterface use EntityManagerAwareTrait; use ContextServiceAwareTrait; use StatutServiceAwareTrait; use CacheContainerTrait; private array $privilegesCache = []; Loading Loading @@ -78,7 +76,7 @@ class PrivilegeService implements PrivilegeProviderInterface, ProviderInterface public function getPrivilegesRoles() { if (empty($this->privilegesCache)){ $this->privilegesCache = $this->getCacheContainer()->privilegesRoles('makePrivilegesRoles'); $this->privilegesCache = $this->makePrivilegesRoles(); } return $this->privilegesCache; } Loading