trait DrupalKernelTrait (View source)

Common functionality for overridden kernels.

Properties

protected ServiceModifierInterface[] $serviceModifiers
protected $serviceFinder

Methods

addServiceModifier(ServiceModifierInterface $serviceModifier)

Add a service modifier to the container builder.

getContainerBuilder()

No description

ContainerInterface
initializeContainer()

Initializes the service container.

discoverServiceProviders()

{@inheritdoc}

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}