Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

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