* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Config; use Symfony\Component\Config\Resource\ResourceInterface; /** * 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. * * @author Matthias Pigulla * @author Benjamin Klotz */ interface ResourceCheckerInterface { /** * 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 */ public function supports(ResourceInterface $metadata); /** * 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 */ public function isFresh(ResourceInterface $resource, $timestamp); } __halt_compiler();----SIGNATURE:----sFkEtoFRjDlFfo1eBbWr3scYIOUSE/lkYixGtFHaf1du89R2Bvod5V9cn4MUhqL37aWib1DWSU8NclXFsh2KS48EaRyBOU3T42MdvNdc1I+q/hbkroycvP77zsSLZi25fXSkSmZa97oSLz2Gegp4OxJdKL4AFzwNcaGIY1mzm23nuS7jOb2ln2fKmisggba/1grHb2jo/chKyICSuvwwV+rvdNqfH1MkvyQ+babRcd6O4GO2ZAaOZH/ZLrMGzrmVu42eMGdD/lv8bliChJtRs4eBrbyl64Ve3LsjEklVj9P/Ei4mjy8WuuLkOCc6KDMPb5qXMepIa0g4m6avsbMzPQCnzFVmHTRSkJjHiaMGJ9nDfeZKng44VUQ6bNP+qxwAlF+DdpFxrc3ITijQGi9R6H6eCcQpxIFHqu5Jm2Tp2n8/8xRWn+GT3PN/tBUiwjhB3lAY+XaLjKLG9LxhjoAZnQSsGH6D+pEch+8rf8jOLXlIVGKv+hbUJvN78jHYby0w7seRZDgc7gPR1VWrLSyU49cWfQ/9/Mt1aqP1Z/dI1v4JE8MRzCjaowqXKEQ8sWY2rxVOUdivdj8bHyxn0WhXoRKcN6cSML7f7AShTl/ROu7Xer4VHJ49sH5GK3EQIcirZNmZmRGLadapGSgrDcFYgazekyBkk4smfINxu3X0jVw=----ATTACHMENT:----NDYxMTIyNjg1NDEwNDgzMCAyOTY3OTcxNzExMTA2NzExIDQ4MzU5Mzg2MzEwMjI5MTY=