Verzeichnisstruktur phpBB-3.1.0


Veröffentlicht
27.10.2014

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: 09.10.2024, 12:58 - Dateigröße: 4.93 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\DependencyInjection\ContainerInterface;
 015  use Symfony\Component\HttpKernel\Bundle\BundleInterface;
 016  use Symfony\Component\Config\Loader\LoaderInterface;
 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   * @api
 026   */
 027  interface KernelInterface extends HttpKernelInterface, \Serializable
 028  {
 029      /**
 030       * Returns an array of bundles to register.
 031       *
 032       * @return BundleInterface[] An array of bundle instances.
 033       *
 034       * @api
 035       */
 036      public function registerBundles();
 037   
 038      /**
 039       * Loads the container configuration.
 040       *
 041       * @param LoaderInterface $loader A LoaderInterface instance
 042       *
 043       * @api
 044       */
 045      public function registerContainerConfiguration(LoaderInterface $loader);
 046   
 047      /**
 048       * Boots the current kernel.
 049       *
 050       * @api
 051       */
 052      public function boot();
 053   
 054      /**
 055       * Shutdowns the kernel.
 056       *
 057       * This method is mainly useful when doing functional testing.
 058       *
 059       * @api
 060       */
 061      public function shutdown();
 062   
 063      /**
 064       * Gets the registered bundle instances.
 065       *
 066       * @return BundleInterface[] An array of registered bundle instances
 067       *
 068       * @api
 069       */
 070      public function getBundles();
 071   
 072      /**
 073       * Checks if a given class name belongs to an active bundle.
 074       *
 075       * @param string $class A class name
 076       *
 077       * @return bool    true if the class belongs to an active bundle, false otherwise
 078       *
 079       * @api
 080       */
 081      public function isClassInActiveBundle($class);
 082   
 083      /**
 084       * Returns a bundle and optionally its descendants by its name.
 085       *
 086       * @param string  $name  Bundle name
 087       * @param bool    $first Whether to return the first bundle only or together with its descendants
 088       *
 089       * @return BundleInterface|BundleInterface[] A BundleInterface instance or an array of BundleInterface instances if $first is false
 090       *
 091       * @throws \InvalidArgumentException when the bundle is not enabled
 092       *
 093       * @api
 094       */
 095      public function getBundle($name, $first = true);
 096   
 097      /**
 098       * Returns the file path for a given resource.
 099       *
 100       * A Resource can be a file or a directory.
 101       *
 102       * The resource name must follow the following pattern:
 103       *
 104       *     @BundleName/path/to/a/file.something
 105       *
 106       * where BundleName is the name of the bundle
 107       * and the remaining part is the relative path in the bundle.
 108       *
 109       * If $dir is passed, and the first segment of the path is Resources,
 110       * this method will look for a file named:
 111       *
 112       *     $dir/BundleName/path/without/Resources
 113       *
 114       * @param string  $name  A resource name to locate
 115       * @param string  $dir   A directory where to look for the resource first
 116       * @param bool    $first Whether to return the first path or paths for all matching bundles
 117       *
 118       * @return string|array The absolute path of the resource or an array if $first is false
 119       *
 120       * @throws \InvalidArgumentException if the file cannot be found or the name is not valid
 121       * @throws \RuntimeException         if the name contains invalid/unsafe characters
 122       *
 123       * @api
 124       */
 125      public function locateResource($name, $dir = null, $first = true);
 126   
 127      /**
 128       * Gets the name of the kernel.
 129       *
 130       * @return string The kernel name
 131       *
 132       * @api
 133       */
 134      public function getName();
 135   
 136      /**
 137       * Gets the environment.
 138       *
 139       * @return string The current environment
 140       *
 141       * @api
 142       */
 143      public function getEnvironment();
 144   
 145      /**
 146       * Checks if debug mode is enabled.
 147       *
 148       * @return bool    true if debug mode is enabled, false otherwise
 149       *
 150       * @api
 151       */
 152      public function isDebug();
 153   
 154      /**
 155       * Gets the application root dir.
 156       *
 157       * @return string The application root dir
 158       *
 159       * @api
 160       */
 161      public function getRootDir();
 162   
 163      /**
 164       * Gets the current container.
 165       *
 166       * @return ContainerInterface A ContainerInterface instance
 167       *
 168       * @api
 169       */
 170      public function getContainer();
 171   
 172      /**
 173       * Gets the request start time (not available if debug is disabled).
 174       *
 175       * @return int     The request start timestamp
 176       *
 177       * @api
 178       */
 179      public function getStartTime();
 180   
 181      /**
 182       * Gets the cache directory.
 183       *
 184       * @return string The cache directory
 185       *
 186       * @api
 187       */
 188      public function getCacheDir();
 189   
 190      /**
 191       * Gets the log directory.
 192       *
 193       * @return string The log directory
 194       *
 195       * @api
 196       */
 197      public function getLogDir();
 198   
 199      /**
 200       * Gets the charset of the application.
 201       *
 202       * @return string The charset
 203       *
 204       * @api
 205       */
 206      public function getCharset();
 207  }
 208