SelfCheckingResourceChecker
SelfCheckingResourceChecker
class SelfCheckingResourceChecker implements ResourceCheckerInterface
Resource checker for instances of SelfCheckingResourceInterface.
As these resources perform the actual check themselves, we can provide this class as a standard way of validating them.
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
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.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Config/Resource/SelfCheckingResourceChecker.html