Skip to content

Commit f66bd08

Browse files
Tobionnicolas-grekas
authored andcommitted
[Cache] give control over cache prefix seed
The configurable cache prefix seed does not give full control over the cache prefix because the container class is added to the prefix in any case. This is a problem because the container class contains the app env name. We use different app environments for different deployment targets (dev and test). Dev and test should use the same redis cache. But this is impossible to achieve because even setting the cache prefix seed does not accomplish this.
1 parent 7cd40b0 commit f66bd08

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/DependencyInjection/SecurityExtensionTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,7 @@ public function testRememberMeCookieInheritFrameworkSessionCookie($config, $same
365365
$container->setParameter('kernel.bundles_metadata', []);
366366
$container->setParameter('kernel.project_dir', __DIR__);
367367
$container->setParameter('kernel.cache_dir', __DIR__);
368+
$container->setParameter('kernel.container_class', 'app');
368369

369370
$container->loadFromExtension('security', [
370371
'firewalls' => [

0 commit comments

Comments
 (0)