[Security] Fix usage of unexistent method in DoctrineAclCache.

This commit is contained in:
Morgan Auchede 2014-09-05 14:27:29 +02:00 committed by Fabien Potencier
parent cfe60a4a47
commit 131abd816f
1 changed files with 4 additions and 1 deletions

View File

@ -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();
}
}
/**