Verzeichnisstruktur phpBB-3.3.15


Veröffentlicht
28.08.2024

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

ResourceCheckerInterface.php

Zuletzt modifiziert: 02.04.2025, 15:02 - Dateigröße: 1.52 KiB


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;
13   
14  use Symfony\Component\Config\Resource\ResourceInterface;
15   
16  /**
17   * Interface for ResourceCheckers.
18   *
19   * When a ResourceCheckerConfigCache instance is checked for freshness, all its associated
20   * metadata resources are passed to ResourceCheckers. The ResourceCheckers
21   * can then inspect the resources and decide whether the cache can be considered
22   * fresh or not.
23   *
24   * @author Matthias Pigulla <mp@webfactory.de>
25   * @author Benjamin Klotz <bk@webfactory.de>
26   */
27  interface ResourceCheckerInterface
28  {
29      /**
30       * Queries the ResourceChecker whether it can validate a given
31       * resource or not.
32       *
33       * @param ResourceInterface $metadata The resource to be checked for freshness
34       *
35       * @return bool True if the ResourceChecker can handle this resource type, false if not
36       */
37      public function supports(ResourceInterface $metadata);
38   
39      /**
40       * Validates the resource.
41       *
42       * @param ResourceInterface $resource  The resource to be validated
43       * @param int               $timestamp The timestamp at which the cache associated with this resource was created
44       *
45       * @return bool True if the resource has not changed since the given timestamp, false otherwise
46       */
47      public function isFresh(ResourceInterface $resource, $timestamp);
48  }
49