8000 [Security] Fix usage of unexistent method in DoctrineAclCache. · symfony/symfony@131abd8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 131abd8

Browse files
Morgan Auchedefabpot
authored andcommitted
[Security] Fix usage of unexistent method in DoctrineAclCache.
1 parent cfe60a4 commit 131abd8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Symfony/Component/Security/Acl/Domain/DoctrineAclCache.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Security\Acl\Domain;
1313

1414
use Doctrine\Common\Cache\Cache;
15+
use Doctrine\Common\Cache\CacheProvider;
1516
use Symfony\Component\Security\Acl\Model\AclCacheInterface;
1617
use Symfony\Component\Security\Acl\Model\AclInterface;
1718
use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface;
@@ -55,7 +56,9 @@ public function __construct(Cache $cache, PermissionGrantingStrategyInterface $p
5556
*/
5657
public function clearCache()
5758
{
58-
$this->cache->deleteByPrefix($this->prefix);
59+
if ($this->cache instanceof CacheProvider) {
60+
$this->cache->deleteAll();
61+
}
5962
}
6063

6164
/**

0 commit comments

Comments
 (0)
0