* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config\Resource; /** * FileExistenceResource represents a resource stored on the filesystem. * Freshness is only evaluated against resource creation or deletion. * * The resource can be a file or a directory. * * @author Charles-Henri Bruyand */ class FileExistenceResource implements SelfCheckingResourceInterface, \Serializable { private $resource; private $exists; /** * @param string $resource The file path to the resource */ public function __construct($resource) { $this->resource = (string) $resource; $this->exists = file_exists($resource); } /** * {@inheritdoc} */ public function __toString() { return $this->resource; } /** * @return string The file path to the resource */ public function getResource() { return $this->resource; } /** * {@inheritdoc} */ public function isFresh($timestamp) { return file_exists($this->resource) === $this->exists; } /** * {@inheritdoc} */ public function serialize() { return serialize(array($this->resource, $this->exists)); } /** * {@inheritdoc} */ public function unserialize($serialized) { list($this->resource, $this->exists) = unserialize($serialized); } } __halt_compiler();----SIGNATURE:----sTLCMurwSU9sw+s3NLbSMLlP6A95A6BrdrIpb9hqL8YrQA3DcCYbZPlC1VHgT2kpgUNEmzN9JcijJrh2UZ4wEwdqX6ItOZnXB6aIRGO5Anl3doogSL3zRCToM6+ejLxR71cX+pPsxyUEX6CS5ivNdvIDVpwN8nonqJ1g7toNqqrbr8TpRwi/6igEDEzjkdyQT7BpCTeUSc9f1ypUtT/hrCsM/AnV2eGERqTCvyoYldd4xQnKgoYe/bVdYq+sQRA5OrwUXvj4LBtpFEXlVwlWJEmwu436R8FoCEPq23IHhFlT+dQkPsNOk6T0OogJ22zic9rc5X2GLoKwHNqrq/lIsjYP3ITACD1Uy1EangoQKIQwAA0kJKv8U5LKkoU9BP+nbEeXD5kVxQsoFIBx6uk+q1Dr0xM/F27NJ5RgHTlTZS8otP8JxSko6iC+PZHjK+aob4om9kYfZbGagty9eISsWXoOaPW1e0z/rE7Sj/zB6L2aH5FP6gfaJSn48CaV29YMXGlchQhLed4a7rM+NrJe9Abvcm3lX4xhbBgDXQTNspU97zX3tr/8qYc5C1O5bMjAjSUqOm4AkZpOZLABSiDSUxymMFKKYjgkWjkMxj5JxOn2VQXGtHlLEFmm/F3QUNoUuviemoTjgPnHsG1X7LXoWJ1gVv1mwQheSqp0k1BBgGM=----ATTACHMENT:----NjA4MDcyMzM5NzAwNzMzNiA0NTU3MjQzMjQyNTY1OTYgNDY1MDQ3MDc4NTU0MzMwOQ==