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

Loader.php

Zuletzt modifiziert: 01.05.2026, 11:27 - Dateigröße: 1.82 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\Loader;
 13   
 14  use Symfony\Component\Config\Exception\FileLoaderLoadException;
 15   
 16  /**
 17   * Loader is the abstract class used by all built-in loaders.
 18   *
 19   * @author Fabien Potencier <fabien@symfony.com>
 20   */
 21  abstract class Loader implements LoaderInterface
 22  {
 23      protected $resolver;
 24   
 25      /**
 26       * {@inheritdoc}
 27       */
 28      public function getResolver()
 29      {
 30          return $this->resolver;
 31      }
 32   
 33      /**
 34       * {@inheritdoc}
 35       */
 36      public function setResolver(LoaderResolverInterface $resolver)
 37      {
 38          $this->resolver = $resolver;
 39      }
 40   
 41      /**
 42       * Imports a resource.
 43       *
 44       * @param mixed       $resource A resource
 45       * @param string|null $type     The resource type or null if unknown
 46       *
 47       * @return mixed
 48       */
 49      public function import($resource, $type = null)
 50      {
 51          return $this->resolve($resource, $type)->load($resource, $type);
 52      }
 53   
 54      /**
 55       * Finds a loader able to load an imported resource.
 56       *
 57       * @param mixed       $resource A resource
 58       * @param string|null $type     The resource type or null if unknown
 59       *
 60       * @return $this|LoaderInterface
 61       *
 62       * @throws FileLoaderLoadException If no loader is found
 63       */
 64      public function resolve($resource, $type = null)
 65      {
 66          if ($this->supports($resource, $type)) {
 67              return $this;
 68          }
 69   
 70          $loader = null === $this->resolver ? false : $this->resolver->resolve($resource, $type);
 71   
 72          if (false === $loader) {
 73              throw new FileLoaderLoadException($resource, null, null, null, $type);
 74          }
 75   
 76          return $loader;
 77      }
 78  }
 79