Verzeichnisstruktur phpBB-3.3.16


Veröffentlicht
27.04.2026

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

ClosureLoader.php

Zuletzt modifiziert: 01.05.2026, 11:27 - Dateigröße: 1.04 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\Routing\Loader;
 13   
 14  use Symfony\Component\Config\Loader\Loader;
 15  use Symfony\Component\Routing\RouteCollection;
 16   
 17  /**
 18   * ClosureLoader loads routes from a PHP closure.
 19   *
 20   * The Closure must return a RouteCollection instance.
 21   *
 22   * @author Fabien Potencier <fabien@symfony.com>
 23   */
 24  class ClosureLoader extends Loader
 25  {
 26      /**
 27       * Loads a Closure.
 28       *
 29       * @param \Closure    $closure A Closure
 30       * @param string|null $type    The resource type
 31       *
 32       * @return RouteCollection A RouteCollection instance
 33       */
 34      public function load($closure, $type = null)
 35      {
 36          return $closure();
 37      }
 38   
 39      /**
 40       * {@inheritdoc}
 41       */
 42      public function supports($resource, $type = null)
 43      {
 44          return $resource instanceof \Closure && (!$type || 'closure' === $type);
 45      }
 46  }
 47