This commit is contained in:
xl
2023-05-25 16:59:19 +08:00
parent e61507d247
commit 1cf6a7bf8b
+1 -2
View File
@@ -7,7 +7,6 @@ namespace Gii;
use Exception; use Exception;
use Kiri; use Kiri;
use Kiri\Di\LocalService; use Kiri\Di\LocalService;
use Kiri\Abstracts\Config;
use Kiri\Exception\ConfigException; use Kiri\Exception\ConfigException;
use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputArgument;
@@ -63,7 +62,7 @@ class GiiCommand extends Command
$gii->run(null, $input); $gii->run(null, $input);
} else { } else {
$array = []; $array = [];
foreach (Config::get('databases.connections') as $key => $connection) { foreach (\config('databases.connections') as $key => $connection) {
$array[$key] = $gii->run($this->service->get($key), $input); $array[$key] = $gii->run($this->service->get($key), $input);
} }
$output->writeln(json_encode($array, JSON_UNESCAPED_UNICODE)); $output->writeln(json_encode($array, JSON_UNESCAPED_UNICODE));