W3cubDocs

/Symfony 4.1

ResourceCheckerConfigCacheFactory

class ResourceCheckerConfigCacheFactory implements ConfigCacheFactoryInterface

A ConfigCacheFactory implementation that validates the cache with an arbitrary set of ResourceCheckers.

Methods

__construct(iterable $resourceCheckers = array())
ConfigCacheInterface cache(string $file, $callback)

Creates a cache instance and (re-)initializes it if necessary.

Details

__construct(iterable $resourceCheckers = array())

Parameters

iterable $resourceCheckers

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.
https://api.symfony.com/4.1/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.html