BCResourceInterfaceChecker deprecated

class BCResourceInterfaceChecker extends SelfCheckingResourceChecker

deprecated

since 2.8, to be removed in 3.0.

Resource checker for the ResourceInterface. Exists for BC.

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.

Parameters

ResourceInterface $metadata The resource to be checked for freshness

Return Value

bool True if the ResourceChecker can handle this resource type, false if not

bool isFresh(ResourceInterface $resource, int $timestamp)

Validates the resource.

Parameters

ResourceInterface $resource The resource to be validated.
int $timestamp The timestamp at which the cache associated with this resource was created.

Return Value

bool True if the resource has not changed since the given timestamp, false otherwise.

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.8/Symfony/Component/Config/Resource/BCResourceInterfaceChecker.html