Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / src / Bootstrap / FindCommandsCompilerPass.php
index 42648b4ee853f2cab7c1e6b7de21a85ceed496d0..dc1edacd5a32cd2138fdf3304f778495c21d25cc 100644 (file)
@@ -34,11 +34,9 @@ class FindCommandsCompilerPass implements CompilerPassInterface
             $this->serviceTag
         );
 
-        $commands = [];
         foreach ($taggedServices as $id => $tags) {
-            $commands[] = $id;
+            $container->getDefinition($id)
+                ->addTag('persist');
         }
-
-        $container->setParameter('drupal.commands', $commands);
     }
 }