CLI
This commit is contained in:
11
cli/setup/middlewares/01_commands.php
Normal file
11
cli/setup/middlewares/01_commands.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
function loadCommands(&$app): void {
|
||||
$files = new FilesystemIterator($app->getContainer()->get('folders')->commands);
|
||||
foreach ($files as $file) {
|
||||
if ($file->isDir()) {
|
||||
continue;
|
||||
}
|
||||
include_once $file->getRealPath();
|
||||
}
|
||||
}
|
||||
loadCommands($app);
|
Reference in New Issue
Block a user