class DrushServiceModfier

Namespace

Drush\Drupal

Hierarchy

  • class DrushServiceModfier implements \Drupal\Core\DependencyInjection\ServiceModifierInterface

Expanded class hierarchy of DrushServiceModfier

Members

Contains filters are case sensitive

File

lib/Drush/Drupal/DrushServiceModfier.php, line 9

View source
class DrushServiceModfier implements ServiceModifierInterface {
  /**
   * @inheritdoc
   */
  public function alter(ContainerBuilder $container) {
    drush_log(dt("service modifier alter"), LogLevel::DEBUG);
    // http://symfony.com/doc/2.7/components/dependency_injection/tags.html#register-the-pass-with-the-container
    $container->register('drush.service.consolecommands', 'Drush\Command\ServiceCommandlist');
    $container->addCompilerPass(new FindCommandsCompilerPass('drush.service.consolecommands', 'console.command'));
    $container->register('drush.service.consolidationcommands', 'Drush\Command\ServiceCommandlist');
    $container->addCompilerPass(new FindCommandsCompilerPass('drush.service.consolidationcommands', 'consolidation.commandhandler'));
  }
}
1 file declares its use of DrushServiceModfier
DrupalBoot8.php in lib/Drush/Boot/DrupalBoot8.php