Skip to content

Commit 19dc775

Browse files
authored
Update BootAppConfListener.php
跳过非http的服务生成文档
1 parent 1aa1d7b commit 19dc775

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/BootAppConfListener.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ public function process(object $event)
4444
}
4545
foreach ($servers as $server) {
4646
$swagger = new SwaggerJson($server['name']);
47-
47+
#跳过非http的服务
48+
if ($server['name'] != 'http'){
49+
continue;
50+
}
51+
4852
$ignore = $config->get('swagger.ignore', function ($controller, $action) {
4953
return false;
5054
});

0 commit comments

Comments
 (0)