ResourceCheckerInterface (Component\Config)
Symfony\Component\Config\ResourceCheckerInterface
interface ResourceCheckerInterface
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.
Methods
bool | supports(ResourceInterface $metadata) Queries the ResourceChecker whether it can validate a given resource or not. | |
bool | isFresh(ResourceInterface $resource, int $timestamp) Validates the resource. |
Details
public bool supports(ResourceInterface $metadata)
Queries the ResourceChecker whether it can validate a given resource or not.
public bool isFresh(ResourceInterface $resource, int $timestamp)
Validates the resource.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Config/ResourceCheckerInterface.html