Config, setup and bootstrap
This commit is contained in:
9
app/bootstrap/commands.php
Normal file
9
app/bootstrap/commands.php
Normal 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);
|
Reference in New Issue
Block a user