pass default cache lifetime as an integer
This commit is contained in:
parent
7f4368114c
commit
416502df4e
|
@ -1710,7 +1710,7 @@ class FrameworkExtension extends Extension
|
||||||
|
|
||||||
if (!$container->getParameter('kernel.debug')) {
|
if (!$container->getParameter('kernel.debug')) {
|
||||||
$propertyAccessDefinition->setFactory([PropertyAccessor::class, 'createCache']);
|
$propertyAccessDefinition->setFactory([PropertyAccessor::class, 'createCache']);
|
||||||
$propertyAccessDefinition->setArguments([null, null, $version, new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]);
|
$propertyAccessDefinition->setArguments([null, 0, $version, new Reference('logger', ContainerInterface::IGNORE_ON_INVALID_REFERENCE)]);
|
||||||
$propertyAccessDefinition->addTag('cache.pool', ['clearer' => 'cache.system_clearer']);
|
$propertyAccessDefinition->addTag('cache.pool', ['clearer' => 'cache.system_clearer']);
|
||||||
$propertyAccessDefinition->addTag('monolog.logger', ['channel' => 'cache']);
|
$propertyAccessDefinition->addTag('monolog.logger', ['channel' => 'cache']);
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in New Issue