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