summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorgan Auchede <morgan.auchede@sensiolabs.com>2014-09-05 14:27:29 +0200
committerFabien Potencier <fabien.potencier@gmail.com>2014-09-05 15:11:41 +0200
commitaee2d201bfe01008d293b85af075040aebeb2eac (patch)
treee8b49af86e0b2b4b4dace3c87c51810e339aa49a
parent329bf0c9ec47ce666b2c552ae6ee4cce4a7fd6dd (diff)
downloadsymfony-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.php5
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();
+ }
}
/**