* * 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:----Iu6sjeoolHZgXJuoImHoNiT2vqARp4guv1cEOUZNQaEZU/vUCl+YKav6jdKZTGTumTZU/LLc/lgU5ROfrO+lnM2+tTj0SJFGcoIA7RV9MIrkmHuauVvRHRYHcWM7MlJl4TbBCUnkkJ0RFRZJ/WkAai3Emm0zIbV5JoOqIGSd3CmRcNf+7tMgVegDQ5Q+Y2VL0AvgWd9fdDEhXywKUd6lWI/brCc7c7ztJ6dZviaszJnJBG3HrRUW0UNh28ZIaA7ODPK/oS8Z+NONfVyQq5bgl2Du1bYDMghxQKV78t7DtC5rtAIlfbYtHzB6kIMks++tBPqD4/foh6dNIMrJr8FrH1IJIl1AZHIKnINdS6TW1kFcSAS3mxCUbkUbqJ/7OzJkbbHhXqYr1jGxAx4BGq0oUi2jvCYVfltBtCdFOpc1AseAYBbAW7t60F6pmrXovvSKbmAQKxuSwGIx3w0yxJI83rewzyematvZLSLqe6ZlpIzVQqRAVH1bjGtPdxhF0gHn3wNwMqIHndyyrKpBHdX9GzHVq1ojeec/+9/+myklzbFA/p0A97KPmzrksprxp+4SmO0i6ivDR1REGcdTGcV6KCkNalBi77xHNtZndDw2c9KKp3KU326Z9q+HihL9k9QDw84c4Mj63SX4QQafbpqSsZMhHi2C/u5BqTwLhzLyHPU=----ATTACHMENT:----Njc4MzAxNTQxNDYwNzU3MCA0MzU3OTg4Njg0NzQ4MjE3IDQwMTEzMzczMTU1Mzg1MjY=