ConfigCacheFactory

class ConfigCacheFactory implements ConfigCacheFactoryInterface

Basic implementation for ConfigCacheFactoryInterface that will simply create an instance of ConfigCache.

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/2.7/Symfony/Component/Config/ConfigCacheFactory.html