diff options
author | Morgan Auchede <morgan.auchede@sensiolabs.com> | 2014-09-05 14:27:29 +0200 |
---|---|---|
committer | Fabien Potencier <fabien.potencier@gmail.com> | 2014-09-05 15:11:41 +0200 |
commit | aee2d201bfe01008d293b85af075040aebeb2eac (patch) | |
tree | e8b49af86e0b2b4b4dace3c87c51810e339aa49a | |
parent | 329bf0c9ec47ce666b2c552ae6ee4cce4a7fd6dd (diff) | |
download | symfony-security-aee2d201bfe01008d293b85af075040aebeb2eac.zip symfony-security-aee2d201bfe01008d293b85af075040aebeb2eac.tar.gz symfony-security-aee2d201bfe01008d293b85af075040aebeb2eac.tar.bz2 |
[Security] Fix usage of unexistent method in DoctrineAclCache.
-rw-r--r-- | Acl/Domain/DoctrineAclCache.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Acl/Domain/DoctrineAclCache.php b/Acl/Domain/DoctrineAclCache.php index 9e14af5..0c69773 100644 --- a/Acl/Domain/DoctrineAclCache.php +++ b/Acl/Domain/DoctrineAclCache.php @@ -12,6 +12,7 @@ namespace Symfony\Component\Security\Acl\Domain; use Doctrine\Common\Cache\Cache; +use Doctrine\Common\Cache\CacheProvider; use Symfony\Component\Security\Acl\Model\AclCacheInterface; use Symfony\Component\Security\Acl\Model\AclInterface; use Symfony\Component\Security\Acl\Model\ObjectIdentityInterface; @@ -55,7 +56,9 @@ class DoctrineAclCache implements AclCacheInterface */ public function clearCache() { - $this->cache->deleteByPrefix($this->prefix); + if ($this->cache instanceof CacheProvider) { + $this->cache->deleteAll(); + } } /** |