ConfigCacheFactory
in package
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).
Tags
Table of Contents
Interfaces
- ConfigCacheFactoryInterface
- Interface for a ConfigCache factory. This factory creates an instance of ConfigCacheInterface and initializes the cache if necessary.
Properties
- $debug : bool
Methods
- __construct() : mixed
- cache() : ConfigCacheInterface
- Creates a cache instance and (re-)initializes it if necessary.
Properties
$debug
private
bool
$debug
Methods
__construct()
public
__construct(bool $debug) : mixed
Parameters
- $debug : bool
-
The debug flag to pass to ConfigCache
cache()
Creates a cache instance and (re-)initializes it if necessary.
public
cache(string $file, callable $callback) : ConfigCacheInterface
Parameters
- $file : string
-
The absolute cache file path
- $callback : callable