fix:修复BUG/升级1.1.6版本

This commit is contained in:
Ying
2023-04-25 20:11:49 +08:00
parent 445e5f9662
commit 6a6866bbaf
2357 changed files with 456920 additions and 140567 deletions

4
webman
View File

@@ -4,6 +4,7 @@
use Webman\Config;
use Webman\Console\Command;
use Webman\Console\Util;
use support\Container;
require_once __DIR__ . '/vendor/autoload.php';
@@ -25,6 +26,7 @@ if (is_dir($command_path = Util::guessPath(app_path(), '/command', true))) {
}
foreach (config('plugin', []) as $firm => $projects) {
var_dump($projects);
if (isset($projects['app'])) {
if ($command_str = Util::guessPath(base_path() . "/plugin/$firm", 'command')) {
$command_path = base_path() . "/plugin/$firm/$command_str";
@@ -36,7 +38,7 @@ foreach (config('plugin', []) as $firm => $projects) {
continue;
}
foreach ($project['command'] ?? [] as $command) {
$cli->add(new $command);
$cli->add(Container::get($command));
}
}
}