Skip to content

Commit

Permalink
修复测试
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Sep 22, 2023
1 parent f9b3c77 commit 9bb790d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Components/apidoc/src/Tool/DocTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Imi\Cli\Annotation\CommandAction;
use Imi\Cli\Annotation\Option;
use Imi\Cli\Contract\BaseCommand;
use Imi\Log\Logger;
use Imi\Server\Http\Route\Annotation\Action;
use Imi\Server\Http\Route\Annotation\Controller;
use Imi\Server\Http\Route\Annotation\Route;
Expand Down Expand Up @@ -85,7 +86,9 @@ public function api(string $to, ?string $namespace): void
return;
}
// 生成
$generator = new Generator(App::getBean('Logger')->getLogger());
/** @var Logger $loggerInstance */
$loggerInstance = App::getBean('Logger');
$generator = new Generator($loggerInstance->getLogger());

$processors = $generator->getProcessors();
array_unshift($processors, function (Analysis $analysis) use ($controllerClasses) {
Expand Down

0 comments on commit 9bb790d

Please sign in to comment.