Files
phinx-generate-migrations/app/bootstrap/commands.php
2024-12-21 19:00:31 -03:00

9 lines
328 B
PHP

<?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);