[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/symfony/config/ -> ResourceCheckerInterface.php (summary)

(no description)

File Size: 48 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ResourceCheckerInterface:: (2 methods):
  supports()
  isFresh()


Interface: ResourceCheckerInterface  - X-Ref

Interface for ResourceCheckers.

When a ResourceCheckerConfigCache instance is checked for freshness, all its associated
metadata resources are passed to ResourceCheckers. The ResourceCheckers
can then inspect the resources and decide whether the cache can be considered
fresh or not.

supports(ResourceInterface $metadata)   X-Ref
Queries the ResourceChecker whether it can validate a given
resource or not.

param: ResourceInterface $metadata The resource to be checked for freshness
return: bool True if the ResourceChecker can handle this resource type, false if not

isFresh(ResourceInterface $resource, $timestamp)   X-Ref
Validates the resource.

param: ResourceInterface $resource  The resource to be validated
param: int               $timestamp The timestamp at which the cache associated with this resource was created
return: bool True if the resource has not changed since the given timestamp, false otherwise



Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1