Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / src / Bootstrap / DrupalServiceModifier.php
index f193104565f3d1fd2cbf2ffe669070dc132c3cc3..9c563a5bed2d3d2ab9e07b0af66c852c4bb3ffd0 100644 (file)
@@ -5,6 +5,11 @@ namespace Drupal\Console\Bootstrap;
 use Drupal\Core\DependencyInjection\ServiceModifierInterface;
 use Drupal\Core\DependencyInjection\ContainerBuilder;
 
+/**
+ * Class DrupalServiceModifier
+ *
+ * @package Drupal\Console\Bootstrap
+ */
 class DrupalServiceModifier implements ServiceModifierInterface
 {
     /**
@@ -12,11 +17,6 @@ class DrupalServiceModifier implements ServiceModifierInterface
      */
     protected $root;
 
-    /**
-     * @var string
-     */
-    protected $appRoot;
-
     /**
      * @var string
      */
@@ -27,52 +27,38 @@ class DrupalServiceModifier implements ServiceModifierInterface
      */
     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)
+        //        );
     }
 }