/var/www/vhosts/ihelp.ro/httpdocs/vendor/symfony/config/Resource
NameSizeModeActions
ClassExistenceResource.php69720644editdlrm
ComposerResource.php15650644editdlrm
DirectoryResource.php27460644editdlrm
FileExistenceResource.php12200644editdlrm
FileResource.php14650644editdlrm
GlobResource.php87150644editdlrm
ReflectionClassResource.php67570644editdlrm
ResourceInterface.php9640644editdlrm
SelfCheckingResourceChecker.php13740644editdlrm
SelfCheckingResourceInterface.php7580644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/symfony/config/Resource/FileExistenceResource.php (1220B)
* * 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 * * @final */ class FileExistenceResource implements SelfCheckingResourceInterface { private string $resource; private bool $exists; /** * @param string $resource The file path to the resource */ public function __construct(string $resource) { $this->resource = $resource; $this->exists = file_exists($resource); } public function __toString(): string { return $this->resource; } public function getResource(): string { return $this->resource; } public function isFresh(int $timestamp): bool { return file_exists($this->resource) === $this->exists; } }