
| Current Path : /var/www/html/vendor/drush/drush/src/Symfony/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : /var/www/html/vendor/drush/drush/src/Symfony/BootstrapCompilerPass.php |
<?php
namespace Drush\Symfony;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\Reference;
class BootstrapCompilerPass implements CompilerPassInterface
{
public function process(ContainerBuilder $container): void
{
if (!$container->has('bootstrap.manager')) {
return;
}
$definition = $container->findDefinition(
'bootstrap.manager'
);
$taggedServices = $container->findTaggedServiceIds(
'bootstrap.boot'
);
foreach ($taggedServices as $id => $tags) {
$definition->addMethodCall(
'add',
[new Reference($id)]
);
}
}
}