4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Config;
15 * Interface for a ConfigCache factory. This factory creates
16 * an instance of ConfigCacheInterface and initializes the
19 * @author Matthias Pigulla <mp@webfactory.de>
21 interface ConfigCacheFactoryInterface
24 * Creates a cache instance and (re-)initializes it if necessary.
26 * @param string $file The absolute cache file path
27 * @param 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
29 * @return ConfigCacheInterface $configCache The cache instance
31 public function cache($file, $callable);