root = $root; $this->appRoot = $appRoot; $this->commandTag = $serviceTag; $this->generatorTag = $generatorTag; $this->rebuild = $rebuild; } /** * @inheritdoc */ public function alter(ContainerBuilder $container) { $container->addCompilerPass( new AddServicesCompilerPass( $this->root, $this->appRoot, $this->rebuild ) ); $container->addCompilerPass( new FindCommandsCompilerPass($this->commandTag) ); $container->addCompilerPass( new FindGeneratorsCompilerPass($this->generatorTag) ); } }