class DrupalKernel

The DrupalKernel class is the core of Drupal itself.

This class is responsible for building the Dependency Injection Container and also deals with the registration of bundles. It allows registered bundles to add their services to the container. Core provides the CoreBundle, which adds the services required for all core subsystems. Each module can then add its own bundle, i.e. a subclass of Symfony\Component\HttpKernel\Bundle, to register services to the container.

Hierarchy

Expanded class hierarchy of DrupalKernel

10 files declare their use of DrupalKernel
3 string references to 'DrupalKernel'

File

drupal/core/lib/Drupal/Core/DrupalKernel.php, line 30
Definition of Drupal\Core\DrupalKernel.

Namespace

Drupal\Core
View source

Members

Namesort descending Modifiers Type Description Overrides
DrupalKernel::$allowDumping protected property Whether the container can be dumped.
DrupalKernel::$bundleClasses protected property The list of the classnames of the bundles in this kernel.
DrupalKernel::$classLoader protected property The classloader object.
DrupalKernel::$configStorage protected property Config storage object used for reading enabled modules configuration.
DrupalKernel::$containerNeedsDumping protected property Whether the container needs to be dumped once booting is complete.
DrupalKernel::$moduleData protected property An array of module data objects.
DrupalKernel::$moduleList protected property Holds the list of enabled modules.
DrupalKernel::$newModuleList protected property Holds an updated list of enabled modules.
DrupalKernel::$storage protected property PHP code storage object to use for the compiled container.
DrupalKernel::boot public function Overrides Kernel::boot(). Overrides Kernel::boot
DrupalKernel::buildContainer protected function Builds the service container. Overrides Kernel::buildContainer
DrupalKernel::dumpDrupalContainer protected function Dumps the service container to PHP code in the config directory.
DrupalKernel::getClassName protected function Returns the classname based on environment, debug and testing prefix.
DrupalKernel::getContainerBuilder protected function Gets a new ContainerBuilder instance used to build the service container. Overrides Kernel::getContainerBuilder
DrupalKernel::getModuleFileNames protected function Returns the file name for each enabled module.
DrupalKernel::init public function Overrides Kernel::init(). Overrides Kernel::init
DrupalKernel::initializeContainer protected function Initializes the service container. Overrides Kernel::initializeContainer
DrupalKernel::moduleData protected function Returns module data on the filesystem.
DrupalKernel::registerBundles public function Returns an array of available bundles. Overrides KernelInterface::registerBundles
DrupalKernel::registerContainerConfiguration public function Overrides and eliminates this method from the parent class. Do not use. Overrides KernelInterface::registerContainerConfiguration
DrupalKernel::registerModuleNamespaces protected function Registers the namespace of each enabled module with the class loader.
DrupalKernel::storage protected function Gets the PHP code storage object to use for the compiled container.
DrupalKernel::updateModules public function Implements Drupal\Core\DrupalKernelInterface::updateModules(). Overrides DrupalKernelInterface::updateModules
DrupalKernel::__construct public function Constructs a DrupalKernel object. Overrides Kernel::__construct
HttpKernelInterface::MASTER_REQUEST constant
HttpKernelInterface::SUB_REQUEST constant
Kernel::$booted protected property
Kernel::$bundleMap protected property
Kernel::$bundles protected property
Kernel::$classes protected property
Kernel::$container protected property
Kernel::$debug protected property
Kernel::$environment protected property
Kernel::$errorReportingLevel protected property
Kernel::$name protected property 1
Kernel::$rootDir protected property
Kernel::$startTime protected property
Kernel::dumpContainer protected function Dumps the service container to PHP code in the cache.
Kernel::EXTRA_VERSION constant
Kernel::getBundle public function Returns a bundle and optionally its descendants by its name. Overrides KernelInterface::getBundle
Kernel::getBundles public function Gets the registered bundle instances. Overrides KernelInterface::getBundles 1
Kernel::getCacheDir public function Gets the cache directory. Overrides KernelInterface::getCacheDir
Kernel::getCharset public function Gets the charset of the application. Overrides KernelInterface::getCharset
Kernel::getContainer public function Gets the current container. Overrides KernelInterface::getContainer
Kernel::getContainerBaseClass protected function Gets the container's base class.
Kernel::getContainerClass protected function Gets the container class.
Kernel::getContainerLoader protected function Returns a loader for the container.
Kernel::getEnvironment public function Gets the environment. Overrides KernelInterface::getEnvironment
Kernel::getEnvParameters protected function Gets the environment parameters.
Kernel::getHttpKernel protected function Gets a http kernel from the container
Kernel::getKernelParameters protected function Returns the kernel parameters.
Kernel::getLogDir public function Gets the log directory. Overrides KernelInterface::getLogDir
Kernel::getName public function Gets the name of the kernel Overrides KernelInterface::getName 1
Kernel::getRootDir public function Gets the application root dir. Overrides KernelInterface::getRootDir
Kernel::getStartTime public function Gets the request start time (not available if debug is disabled). Overrides KernelInterface::getStartTime
Kernel::handle public function @api Overrides HttpKernelInterface::handle
Kernel::initializeBundles protected function Initializes the data structures related to the bundle management. 1
Kernel::isClassInActiveBundle public function Checks if a given class name belongs to an active bundle. Overrides KernelInterface::isClassInActiveBundle
Kernel::isDebug public function Checks if debug mode is enabled. Overrides KernelInterface::isDebug
Kernel::loadClassCache public function Loads the PHP class cache.
Kernel::locateResource public function Returns the file path for a given resource. Overrides KernelInterface::locateResource
Kernel::MAJOR_VERSION constant
Kernel::MINOR_VERSION constant
Kernel::RELEASE_VERSION constant
Kernel::serialize public function
Kernel::setClassCache public function Used internally.
Kernel::shutdown public function Shutdowns the kernel. Overrides KernelInterface::shutdown
Kernel::stripComments public static function Removes comments from a PHP source string.
Kernel::terminate public function @api Overrides TerminableInterface::terminate
Kernel::unserialize public function
Kernel::VERSION constant
Kernel::VERSION_ID constant
Kernel::__clone public function