class DrupalKernel extends DrupalKernel (View source)

Overridden version of DrupalKernel adapted to the needs of Drush.

Traits

Common functionality for overridden kernels.

Properties

protected ServiceModifierInterface[] $serviceModifiers from  DrupalKernelTrait
protected $serviceFinder from  DrupalKernelTrait

Methods

addServiceModifier(ServiceModifierInterface $serviceModifier)

Add a service modifier to the container builder.

getContainerBuilder()

No description

ContainerInterface
initializeContainer()

Initializes the service container.

Details

addServiceModifier(ServiceModifierInterface $serviceModifier)

Add a service modifier to the container builder.

The container is not compiled until $kernel->boot(), so there is a chance for clients to add compiler passes et. al. before then.

Parameters

ServiceModifierInterface $serviceModifier

protected getContainerBuilder()

No description

protected ContainerInterface initializeContainer()

Initializes the service container.

Return Value

ContainerInterface

protected shouldDrushInvalidateContainer()

No description

discoverServiceProviders()

{@inheritdoc}