Files
oficial/cli/setup/middlewares/01_commands.php

14 lines
456 B
PHP
Raw Normal View History

2023-11-25 00:56:18 -03:00
<?php
2024-08-27 14:50:45 -04:00
/*function loadCommands(&$app): void {
2023-11-25 00:56:18 -03:00
$files = new FilesystemIterator($app->getContainer()->get('folders')->commands);
foreach ($files as $file) {
if ($file->isDir()) {
continue;
}
include_once $file->getRealPath();
}
}
2024-08-27 14:50:45 -04:00
loadCommands($app);*/
$app->setCommandLoader($app->getContainer()->get(Symfony\Component\Console\CommandLoader\CommandLoaderInterface::class));
$app->setDefaultCommand('run:full');