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

ChainCacheClearer.php

Zuletzt modifiziert: 02.04.2025, 15:03 - Dateigröße: 1.38 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\HttpKernel\CacheClearer;
13   
14  /**
15   * ChainCacheClearer.
16   *
17   * @author Dustin Dobervich <ddobervich@gmail.com>
18   *
19   * @final since version 3.4
20   */
21  class ChainCacheClearer implements CacheClearerInterface
22  {
23      protected $clearers;
24   
25      /**
26       * Constructs a new instance of ChainCacheClearer.
27       *
28       * @param array $clearers The initial clearers
29       */
30      public function __construct($clearers = [])
31      {
32          $this->clearers = $clearers;
33      }
34   
35      /**
36       * {@inheritdoc}
37       */
38      public function clear($cacheDir)
39      {
40          foreach ($this->clearers as $clearer) {
41              $clearer->clear($cacheDir);
42          }
43      }
44   
45      /**
46       * Adds a cache clearer to the aggregate.
47       *
48       * @deprecated since version 3.4, to be removed in 4.0, inject the list of clearers as a constructor argument instead.
49       */
50      public function add(CacheClearerInterface $clearer)
51      {
52          @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 3.4 and will be removed in 4.0, inject the list of clearers as a constructor argument instead.', __METHOD__), \E_USER_DEPRECATED);
53   
54          $this->clearers[] = $clearer;
55      }
56  }
57