public function DrupalKernel::addServiceModifier

master DrupalKernel.php public DrupalKernel::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.

File

lib/Drush/Drupal/DrupalKernel.php, line 30

Namespace

Drush\Drupal

Class

DrupalKernel

Code

public function addServiceModifier(ServiceModifierInterface $serviceModifier) {
  drush_log(dt("add service modifier"), LogLevel::DEBUG);
  $this->serviceModifiers[] = $serviceModifier;
}