$container->
getDefinition('cache.adapter.filesystem'
)->
replaceArgument(2,
$config['directory'
]);
if (isset($config['prefix_seed'
])) { $container->
setParameter('cache.prefix.seed',
$config['prefix_seed'
]);
} if ($container->
hasParameter('cache.prefix.seed'
)) { // Inline any env vars referenced in the parameter
$container->
setParameter('cache.prefix.seed',
$container->
resolveEnvPlaceholders($container->
getParameter('cache.prefix.seed'
), true
));
} foreach (['psr6', 'redis', 'memcached', 'doctrine_dbal', 'pdo'
] as $name) { if (isset($config[$name = 'default_'.
$name.'_provider'
])) { $container->
setAlias('cache.'.
$name,
new Alias(CachePoolPass::
getServiceProvider($container,
$config[$name]), false
));
} } foreach (['app', 'system'
] as $name) { $config['pools'
]['cache.'.
$name] =
[ 'adapters' =>
[$config[$name]],
'public' => true,
'tags' => false,
];
} foreach ($config['pools'
] as $name =>
$pool) { $pool['adapters'
] =
$pool['adapters'
] ?:
['cache.app'
];