Skip to content

Commit

Permalink
[Security] Fix usage of unexistent method in DoctrineAclCache.
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgan Auchede authored and fabpot committed Sep 5, 2014
1 parent cfe60a4 commit 131abd8
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -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;
Expand Down Expand Up @@ -55,7 +56,9 @@ public function __construct(Cache $cache, PermissionGrantingStrategyInterface $p
*/
public function clearCache()
{
$this->cache->deleteByPrefix($this->prefix);
if ($this->cache instanceof CacheProvider) {
$this->cache->deleteAll();
}
}

/**
Expand Down

0 comments on commit 131abd8

Please sign in to comment.