use Drupal\Core\DependencyInjection\ServiceModifierInterface;
use Drupal\Core\DependencyInjection\ContainerBuilder;
+/**
+ * Class DrupalServiceModifier
+ *
+ * @package Drupal\Console\Bootstrap
+ */
class DrupalServiceModifier implements ServiceModifierInterface
{
/**
*/
protected $root;
- /**
- * @var string
- */
- protected $appRoot;
-
/**
* @var string
*/
*/
protected $generatorTag;
- /**
- * @var boolean
- */
- protected $rebuild;
-
/**
* DrupalServiceModifier constructor.
*
- * @param string $root
- * @param string $appRoot
- * @param string $serviceTag
- * @param string $generatorTag
- * @param boolean $rebuild
+ * @param string $root
+ * @param string $serviceTag
+ * @param string $generatorTag
*/
public function __construct(
$root = null,
- $appRoot = null,
$serviceTag,
- $generatorTag,
- $rebuild
+ $generatorTag
) {
$this->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)
+ new DrupalCompilerPass()
);
+
+ // $container->addCompilerPass(
+ // new FindCommandsCompilerPass($this->commandTag)
+ // );
+ //
+ // $container->addCompilerPass(
+ // new FindGeneratorsCompilerPass($this->generatorTag)
+ // );
}
}