3 namespace Drupal\Console\Bootstrap;
5 use Drupal\Core\DependencyInjection\ServiceModifierInterface;
6 use Drupal\Core\DependencyInjection\ContainerBuilder;
9 * Class DrupalServiceModifier
11 * @package Drupal\Console\Bootstrap
13 class DrupalServiceModifier implements ServiceModifierInterface
23 protected $commandTag;
28 protected $generatorTag;
31 * DrupalServiceModifier constructor.
34 * @param string $serviceTag
35 * @param string $generatorTag
37 public function __construct(
43 $this->commandTag = $serviceTag;
44 $this->generatorTag = $generatorTag;
50 public function alter(ContainerBuilder $container)
52 $container->addCompilerPass(
53 new DrupalCompilerPass()
56 // $container->addCompilerPass(
57 // new FindCommandsCompilerPass($this->commandTag)
60 // $container->addCompilerPass(
61 // new FindGeneratorsCompilerPass($this->generatorTag)