Commit 20f06adc authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

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

parent bd67fcf6
Loading
Loading
Loading
Loading
Loading
+1 −3
Changes for module/Application/src/Service/PrivilegeService.php: 1 added line, 3 removed lines.
Original line number Diff line number Diff line
@@ -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;
    }