interface ConfigCacheFactoryInterface
Interface for a ConfigCache factory. This factory creates an instance of ConfigCacheInterface and initializes the cache if necessary.
ConfigCacheInterface | cache(string $file, callable $callable) Creates a cache instance and (re-)initializes it if necessary. |
Creates a cache instance and (re-)initializes it if necessary.
string | $file | The absolute cache file path |
callable | $callable | The callable to be executed when the cache needs to be filled (i. e. is not fresh). The cache will be passed as the only parameter to this callback |
ConfigCacheInterface | $configCache The cache instance |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Config/ConfigCacheFactoryInterface.html