Config, setup and bootstrap

This commit is contained in:
Juan Pablo Vial
2024-12-21 19:00:31 -03:00
parent 0fddc3a310
commit 211b6b0b94
10 changed files with 149 additions and 0 deletions

View File

@ -0,0 +1,9 @@
<?php
function buildCommands(\Symfony\Component\Console\Application &$app): \Symfony\Component\Console\Application {
$commands = $app->getContainer()->get('commands');
foreach ($commands as $commandClass) {
$app->add($app->getContainer()->get($commandClass));
}
return $app;
}
return buildCommands($app);