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.
Expanded class hierarchy of DrupalKernel
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
DrupalKernel:: |
protected | property | Whether the container can be dumped. | |
DrupalKernel:: |
protected | property | The list of the classnames of the bundles in this kernel. | |
DrupalKernel:: |
protected | property | The classloader object. | |
DrupalKernel:: |
protected | property | Config storage object used for reading enabled modules configuration. | |
DrupalKernel:: |
protected | property | Whether the container needs to be dumped once booting is complete. | |
DrupalKernel:: |
protected | property | An array of module data objects. | |
DrupalKernel:: |
protected | property | Holds the list of enabled modules. | |
DrupalKernel:: |
protected | property | Holds an updated list of enabled modules. | |
DrupalKernel:: |
protected | property | PHP code storage object to use for the compiled container. | |
DrupalKernel:: |
public | function |
Overrides Kernel::boot(). Overrides Kernel:: |
|
DrupalKernel:: |
protected | function |
Builds the service container. Overrides Kernel:: |
|
DrupalKernel:: |
protected | function | Dumps the service container to PHP code in the config directory. | |
DrupalKernel:: |
protected | function | Returns the classname based on environment, debug and testing prefix. | |
DrupalKernel:: |
protected | function |
Gets a new ContainerBuilder instance used to build the service container. Overrides Kernel:: |
|
DrupalKernel:: |
protected | function | Returns the file name for each enabled module. | |
DrupalKernel:: |
public | function |
Overrides Kernel::init(). Overrides Kernel:: |
|
DrupalKernel:: |
protected | function |
Initializes the service container. Overrides Kernel:: |
|
DrupalKernel:: |
protected | function | Returns module data on the filesystem. | |
DrupalKernel:: |
public | function |
Returns an array of available bundles. Overrides KernelInterface:: |
|
DrupalKernel:: |
public | function |
Overrides and eliminates this method from the parent class. Do not use. Overrides KernelInterface:: |
|
DrupalKernel:: |
protected | function | Registers the namespace of each enabled module with the class loader. | |
DrupalKernel:: |
protected | function | Gets the PHP code storage object to use for the compiled container. | |
DrupalKernel:: |
public | function |
Implements Drupal\Core\DrupalKernelInterface::updateModules(). Overrides DrupalKernelInterface:: |
|
DrupalKernel:: |
public | function |
Constructs a DrupalKernel object. Overrides Kernel:: |
|
HttpKernelInterface:: |
constant | |||
HttpKernelInterface:: |
constant | |||
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | 1 | |
Kernel:: |
protected | property | ||
Kernel:: |
protected | property | ||
Kernel:: |
protected | function | Dumps the service container to PHP code in the cache. | |
Kernel:: |
constant | |||
Kernel:: |
public | function |
Returns a bundle and optionally its descendants by its name. Overrides KernelInterface:: |
|
Kernel:: |
public | function |
Gets the registered bundle instances. Overrides KernelInterface:: |
1 |
Kernel:: |
public | function |
Gets the cache directory. Overrides KernelInterface:: |
|
Kernel:: |
public | function |
Gets the charset of the application. Overrides KernelInterface:: |
|
Kernel:: |
public | function |
Gets the current container. Overrides KernelInterface:: |
|
Kernel:: |
protected | function | Gets the container's base class. | |
Kernel:: |
protected | function | Gets the container class. | |
Kernel:: |
protected | function | Returns a loader for the container. | |
Kernel:: |
public | function |
Gets the environment. Overrides KernelInterface:: |
|
Kernel:: |
protected | function | Gets the environment parameters. | |
Kernel:: |
protected | function | Gets a http kernel from the container | |
Kernel:: |
protected | function | Returns the kernel parameters. | |
Kernel:: |
public | function |
Gets the log directory. Overrides KernelInterface:: |
|
Kernel:: |
public | function |
Gets the name of the kernel Overrides KernelInterface:: |
1 |
Kernel:: |
public | function |
Gets the application root dir. Overrides KernelInterface:: |
|
Kernel:: |
public | function |
Gets the request start time (not available if debug is disabled). Overrides KernelInterface:: |
|
Kernel:: |
public | function |
@api Overrides HttpKernelInterface:: |
|
Kernel:: |
protected | function | Initializes the data structures related to the bundle management. | 1 |
Kernel:: |
public | function |
Checks if a given class name belongs to an active bundle. Overrides KernelInterface:: |
|
Kernel:: |
public | function |
Checks if debug mode is enabled. Overrides KernelInterface:: |
|
Kernel:: |
public | function | Loads the PHP class cache. | |
Kernel:: |
public | function |
Returns the file path for a given resource. Overrides KernelInterface:: |
|
Kernel:: |
constant | |||
Kernel:: |
constant | |||
Kernel:: |
constant | |||
Kernel:: |
public | function | ||
Kernel:: |
public | function | Used internally. | |
Kernel:: |
public | function |
Shutdowns the kernel. Overrides KernelInterface:: |
|
Kernel:: |
public static | function | Removes comments from a PHP source string. | |
Kernel:: |
public | function |
@api Overrides TerminableInterface:: |
|
Kernel:: |
public | function | ||
Kernel:: |
constant | |||
Kernel:: |
constant | |||
Kernel:: |
public | function |