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

KernelInterface.php

Zuletzt modifiziert: 01.05.2026, 11:26 - Dateigröße: 4.57 KiB


 001  <?php
 002   
 003  /*
 004   * This file is part of the Symfony package.
 005   *
 006   * (c) Fabien Potencier <fabien@symfony.com>
 007   *
 008   * For the full copyright and license information, please view the LICENSE
 009   * file that was distributed with this source code.
 010   */
 011   
 012  namespace Symfony\Component\HttpKernel;
 013   
 014  use Symfony\Component\Config\Loader\LoaderInterface;
 015  use Symfony\Component\DependencyInjection\ContainerInterface;
 016  use Symfony\Component\HttpKernel\Bundle\BundleInterface;
 017   
 018  /**
 019   * The Kernel is the heart of the Symfony system.
 020   *
 021   * It manages an environment made of bundles.
 022   *
 023   * @author Fabien Potencier <fabien@symfony.com>
 024   */
 025  interface KernelInterface extends HttpKernelInterface, \Serializable
 026  {
 027      /**
 028       * Returns an array of bundles to register.
 029       *
 030       * @return iterable|BundleInterface[] An iterable of bundle instances
 031       */
 032      public function registerBundles();
 033   
 034      /**
 035       * Loads the container configuration.
 036       */
 037      public function registerContainerConfiguration(LoaderInterface $loader);
 038   
 039      /**
 040       * Boots the current kernel.
 041       */
 042      public function boot();
 043   
 044      /**
 045       * Shutdowns the kernel.
 046       *
 047       * This method is mainly useful when doing functional testing.
 048       */
 049      public function shutdown();
 050   
 051      /**
 052       * Gets the registered bundle instances.
 053       *
 054       * @return BundleInterface[] An array of registered bundle instances
 055       */
 056      public function getBundles();
 057   
 058      /**
 059       * Returns a bundle and optionally its descendants by its name.
 060       *
 061       * The second argument is deprecated as of 3.4 and will be removed in 4.0. This method
 062       * will always return an instance of BundleInterface in 4.0.
 063       *
 064       * @param string $name  Bundle name
 065       * @param bool   $first Whether to return the first bundle only or together with its descendants
 066       *
 067       * @return BundleInterface|BundleInterface[] A BundleInterface instance or an array of BundleInterface instances if $first is false
 068       *
 069       * @throws \InvalidArgumentException when the bundle is not enabled
 070       */
 071      public function getBundle($name, $first = true);
 072   
 073      /**
 074       * Returns the file path for a given resource.
 075       *
 076       * A Resource can be a file or a directory.
 077       *
 078       * The resource name must follow the following pattern:
 079       *
 080       *     "@BundleName/path/to/a/file.something"
 081       *
 082       * where BundleName is the name of the bundle
 083       * and the remaining part is the relative path in the bundle.
 084       *
 085       * If $dir is passed, and the first segment of the path is "Resources",
 086       * this method will look for a file named:
 087       *
 088       *     $dir/<BundleName>/path/without/Resources
 089       *
 090       * before looking in the bundle resource folder.
 091       *
 092       * @param string $name  A resource name to locate
 093       * @param string $dir   A directory where to look for the resource first
 094       * @param bool   $first Whether to return the first path or paths for all matching bundles
 095       *
 096       * @return string|array The absolute path of the resource or an array if $first is false
 097       *
 098       * @throws \InvalidArgumentException if the file cannot be found or the name is not valid
 099       * @throws \RuntimeException         if the name contains invalid/unsafe characters
 100       */
 101      public function locateResource($name, $dir = null, $first = true);
 102   
 103      /**
 104       * Gets the name of the kernel.
 105       *
 106       * @return string The kernel name
 107       */
 108      public function getName();
 109   
 110      /**
 111       * Gets the environment.
 112       *
 113       * @return string The current environment
 114       */
 115      public function getEnvironment();
 116   
 117      /**
 118       * Checks if debug mode is enabled.
 119       *
 120       * @return bool true if debug mode is enabled, false otherwise
 121       */
 122      public function isDebug();
 123   
 124      /**
 125       * Gets the application root dir (path of the project's Kernel class).
 126       *
 127       * @return string The Kernel root dir
 128       */
 129      public function getRootDir();
 130   
 131      /**
 132       * Gets the current container.
 133       *
 134       * @return ContainerInterface|null A ContainerInterface instance or null when the Kernel is shutdown
 135       */
 136      public function getContainer();
 137   
 138      /**
 139       * Gets the request start time (not available if debug is disabled).
 140       *
 141       * @return float The request start timestamp
 142       */
 143      public function getStartTime();
 144   
 145      /**
 146       * Gets the cache directory.
 147       *
 148       * @return string The cache directory
 149       */
 150      public function getCacheDir();
 151   
 152      /**
 153       * Gets the log directory.
 154       *
 155       * @return string The log directory
 156       */
 157      public function getLogDir();
 158   
 159      /**
 160       * Gets the charset of the application.
 161       *
 162       * @return string The charset
 163       */
 164      public function getCharset();
 165  }
 166