10000 Merge branch '2.4' into 2.5 · symfony/security-acl@155fe2d · GitHub
[go: up one dir, main page]

Skip to content

Commit 155fe2d

Browse files
committed
Merge branch '2.4' into 2.5
* 2.4: (39 commits) [Form] Fix PHPDoc for builder setData methods The underlying data variable is typed as mixed whereas the methods paramers where typed as array. fixed CS [Intl] Improved bundle reader implementations [Console] guarded against invalid aliases switch before_script to before_install and script to install fixed typo [HttpFoundation] Request - URI - comment improvements [Validator] The ratio of the ImageValidator is rounded to two decimals now [Security] Added more tests remove `service` parameter type from XSD [Intl] Added exception handler to command line scripts [Intl] Fixed a few bugs in TextBundleWriter [Intl] Updated icu.ini up to ICU 53 [Intl] Removed non-working $fallback argument from ArrayAccessibleResourceBundle Use separated function to resolve command and related arguments [SwiftmailerBridge] Bump allowed versions of swiftmailer [FrameworkBundle] Remove invalid markup [Intl] Added "internal" tag to all classes under Symfony\Component\Intl\ResourceBundle Remove routes for removed WebProfiler actions [Security] Fix usage of unexistent method in DoctrineAclCache. ... Conflicts: .travis.yml src/Symfony/Bundle/FrameworkBundle/Command/ServerRunCommand.php src/Symfony/Component/HttpKernel/Kernel.php src/Symfony/Component/Process/PhpExecutableFinder.php
2 parents ddb81e9 + ba15330 commit 155fe2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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