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
doc_Symfony
2016-10-28 06:11:01
Comments
Leave a Comment

Please login to continue.