3 namespace Drupal\Console\Bootstrap;
5 use Symfony\Component\DependencyInjection\ContainerBuilder;
6 use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
9 * FindCommandsCompilerPass
11 class FindCommandsCompilerPass implements CompilerPassInterface
16 protected $serviceTag;
19 * FindCommandsCompilerPass constructor.
23 public function __construct($serviceTag)
25 $this->serviceTag = $serviceTag;
31 public function process(ContainerBuilder $container)
33 $taggedServices = $container->findTaggedServiceIds(
38 foreach ($taggedServices as $id => $tags) {
42 $container->setParameter('drupal.commands', $commands);