Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

So funktioniert es


Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück

Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

(Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

SelfCheckingResourceChecker.php

Zuletzt modifiziert: 09.10.2024, 12:56 - Dateigröße: 994.00 Bytes


01  <?php
02   
03  /*
04   * This file is part of the Symfony package.
05   *
06   * (c) Fabien Potencier <fabien@symfony.com>
07   *
08   * For the full copyright and license information, please view the LICENSE
09   * 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  }
37