* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config; use Symfony\Component\Config\Resource\SelfCheckingResourceChecker; /** * ConfigCache caches arbitrary content in files on disk. * * When in debug mode, those metadata resources that implement * \Symfony\Component\Config\Resource\SelfCheckingResourceInterface will * be used to check cache freshness. * * @author Fabien Potencier * @author Matthias Pigulla */ class ConfigCache extends ResourceCheckerConfigCache { private $debug; /** * @param string $file The absolute cache path * @param bool $debug Whether debugging is enabled or not */ public function __construct($file, $debug) { $this->debug = (bool) $debug; $checkers = array(); if (true === $this->debug) { $checkers = array(new SelfCheckingResourceChecker()); } parent::__construct($file, $checkers); } /** * Checks if the cache is still fresh. * * This implementation always returns true when debug is off and the * cache file exists. * * @return bool true if the cache is fresh, false otherwise */ public function isFresh() { if (!$this->debug && is_file($this->getPath())) { return true; } return parent::isFresh(); } } __halt_compiler();----SIGNATURE:----jeDpRVrTzX7b0n45z/jWpvu2/B/1uUQE1MUCnn1H/RejM/GJAWQh0gQXz4SSbWhNK2iwJVeMOwXA/rTqVnCSgCeKvrwJEzr22CHHdfzGMhk7BU00w2t8lLXUfjVvGa211tO0zJ+LVt7ekCDk0OKk4qNjGS6NJDd5WFoWHaR9wlNC0A8PBdjz7WCabHtSWeYerkQ2HfhZIMStCOpfdYZ/ks/x1K7UUj5KPr7EhJo9/Ydd8jpJdvctNjZs+7x2sGC63/VoGYJ/FJbbkso5PFzja4GGxATS76sSr0+il0z+kqsbg9gL6dwkg2uPddTJyw2fFW53aFtGSB+LsMzvi+Bw1h676OpuaV3vXZ25y82YWfsik+9z/g0dgx4ZT9EB+R8dTHeVHOHJNl5MQtjI+pozes+ACG1bKdkFpbwiAAR4CGDwOfGhO1ur+FpLKAvTd3/diO8cJwDgulEOSltDFTJmTlX3s3SHnnivmUz6c5NjGtal5xec3mc09RL+LaOmA2910Sgx5gPD+2is9zVJlxXvh6O6VR2uAeAiE4Rppf3EhbxzSXTZjhYt0jYpZMGwk0yULuANwmK09VtJwBPoOVtIxzDbAJ6d9kHT3hUbXaielmeQsS7mAfRkQiCLSVf2VgZM2uxcl4YH2IrTuiFwRve7p95c/RAeEvSEhtJHxili4aw=----ATTACHMENT:----MTE2NTU5MjU0NjI3MzIwMiA5MDU0NzExMTg0MjQ3MzIyIDkyMDE5NDkzNzY5MjYxNjU=