ResourceCheckerConfigCacheFactory

ResourceCheckerConfigCacheFactory

class ResourceCheckerConfigCacheFactory implements ConfigCacheFactoryInterface

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

Methods

__construct(iterable|ResourceCheckerInterface[] $resourceCheckers = array())
ConfigCacheInterface cache(string $file, $callback)

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

Details

__construct(iterable|ResourceCheckerInterface[] $resourceCheckers = array())

Parameters

iterable|ResourceCheckerInterface[] $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.
http://api.symfony.com/3.3/Symfony/Component/Config/ResourceCheckerConfigCacheFactory.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部