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
Interfaces, Classes and Traits
- ConfigCacheFactoryInterface
- Interface for a ConfigCache factory. This factory creates an instance of ConfigCacheInterface and initializes the cache if necessary.
Table of Contents
- $debug : mixed
- __construct() : mixed
- cache() : ConfigCacheInterface
- Creates a cache instance and (re-)initializes it if necessary.
Properties
$debug
private
mixed
$debug
Methods
__construct()
public
__construct(bool $debug) : mixed
Parameters
- $debug : bool
-
The debug flag to pass to ConfigCache
Return values
mixed —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