* * 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:----IDCpHwV1FB499M54JAXGPnq6cCUyXj7JpU9YIVy7EfKkfhtbvANsYoVPv1SF0I3uzcDjgw9MZdZMRMIWqEQrsQRgnkIKnXOK8diJIIPXae7B0GC+VQg1mq2vVtGwt6o+M5z921ulIPc/6NchOv1gg3DrjMnou197fgRmWPpEItezPcuFbNqOeDLdNx5UAEhDhHZAUbQAkQWvfciCJelo7CaJhwhP+TVZlz5EO9ORS1IuT6ft7N996EHr2ILizKqLBSanx4k9yTAb6AdYj5pLb0TSOEz2/LBVpLN3HvtPhTVwj8hZEMBS1g9XEipYy5PhOt/dVkugrDnroyLaS6NsrHXO2zjA/vKoYKMKNnlFwAXz3d0gSFlYX5N3ZylYwl+eVuRQa68DW3qPXe58CBcocWQBdnaRfsANWJ48u4jQl/GUBXhXG4/+9NVpEBNMoLu+VYfZTrLiEVXb3OvzDd8s4AmoE4wNighszt6gAlcWBPVDw8PCa1rm2vkMib9CZ7uEQE4DamrK7sPPLtzN4it0jByzXtMP2BbaABrDhn871e5RbapbGFVSHe8fvesARkyF+ttxHOIAePfsv9qnPMizjAnB4y4GyKMJE8OA5Xo1WD+03uNcf21JjMh0i8AYcsucm/8g0WcGlOKXbOds+irmMa3q+SAtLf1i9XC5TWiKtfE=----ATTACHMENT:----NDgyOTI1MTcwOTU3OTY3MyA4NTg0ODAyOTczNDg2MTg3IDgxNzMxNjU3NDE1MjEyNDM=