ConfigCacheFactory

class ConfigCacheFactory implements ConfigCacheFactoryInterface

Basic implementation of ConfigCacheFactoryInterface that creates an instance of the default ConfigCache.

This factory and/or cache do not support cache validation by means of ResourceChecker instances (that is, service-based).

Methods

__construct(bool $debug)
ConfigCacheInterface cache(string $file, $callback)

Creates a cache instance and (re-)initializes it if necessary.

Details

__construct(bool $debug)

Parameters

bool $debug The debug flag to pass to ConfigCache

ConfigCacheInterface cache(string $file, $callback)

Creates a cache instance and (re-)initializes it if necessary.

Parameters

string $file The absolute cache file path
$callback

Return Value

ConfigCacheInterface $configCache The cache instance

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Config/ConfigCacheFactory.html