* * 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:----kzWc4RvnKtwdjAzWhPC0K0dDUXauEDyrMTm8/qZBjuGz/ill8NAsMOboS76ufkav18jxeNlT5q5SJoj0Z4RJq6MBo+7uOPDK6AP79kDNdFd9IMywbDNuuJMi/sEtrbJbzM8z5nVDmOzIlxS/hVz82LrRfKwpX4l4TeAAebXKzvYUZW/+jql3xC3+wqgHsNNOgtup0t8cfb+Ovkr8nga7lMIQ58khEM3bwdMtupBim2v79uM3pvt4JJ2vAm/ka3NrwyaPujm32kFFA/SxsE2NxMvY34Z/+zE/xxkGCFonUEP4XPSgO6wMtHF8R+dIkr0RG1pkDixOIX66bqV2F401pe8yelv4vVBj/Nur4lNkuupxQV/cYbY1pe8/yZQwWYH34SSiX7ENZtaD9KfDiL/u+Z3+4D5dWdoQQD4u236Y8kGjE6sm12vLZQdZTpFZtbcNmKwS5fbyq33UMZtyecnWCh1ZaVlEUVSw4VKmIYvOU9hQhzs2PH7D6rEnAPsxBO+dAn8IFZq8OLFx7eEBxvHBRDBVR86JM/iu4oHh2yDkAVJbL5hPmEh9XCfkioBkfJR+qiysrlcZ2Lmz29euP1z46nPVUgahz9cEqif1pSsCcetJPQEUvH4YaJ90GTD4VtsDFlmWoDYBOrHNM9lxWjkeDEU8i2nAcT2Gh5qsZZPgynQ=----ATTACHMENT:----ODY3NTgyODM4ODA2MzI5MyAxNTM5MTk0OTEyOTI5MzI5IDE3OTY1Njg5NjMwMDcyODg=