[ Index ]

PHP Cross Reference of phpBB-3.2.8-deutsch

title

Body

[close]

/vendor/symfony/config/Resource/ -> SelfCheckingResourceChecker.php (source)

   1  <?php
   2  
   3  /*
   4   * This file is part of the Symfony package.
   5   *
   6   * (c) Fabien Potencier <fabien@symfony.com>
   7   *
   8   * For the full copyright and license information, please view the LICENSE
   9   * file that was distributed with this source code.
  10   */
  11  
  12  namespace Symfony\Component\Config\Resource;
  13  
  14  use Symfony\Component\Config\ResourceCheckerInterface;
  15  
  16  /**
  17   * Resource checker for instances of SelfCheckingResourceInterface.
  18   *
  19   * As these resources perform the actual check themselves, we can provide
  20   * this class as a standard way of validating them.
  21   *
  22   * @author Matthias Pigulla <mp@webfactory.de>
  23   */
  24  class SelfCheckingResourceChecker implements ResourceCheckerInterface
  25  {
  26      public function supports(ResourceInterface $metadata)
  27      {
  28          return $metadata instanceof SelfCheckingResourceInterface;
  29      }
  30  
  31      public function isFresh(ResourceInterface $resource, $timestamp)
  32      {
  33          /* @var SelfCheckingResourceInterface $resource */
  34          return $resource->isFresh($timestamp);
  35      }
  36  }


Generated: Tue Apr 7 19:42:26 2020 Cross-referenced by PHPXref 0.7.1