Skip to content
Snippets Groups Projects
Commit 20f06adc authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Plus de cache pour la liste des privilèges & roles

parent bd67fcf6
No related branches found
No related tags found
No related merge requests found
Pipeline #35692 passed
......@@ -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 = [];
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment