浏览代码

added ability to choose which config you use

MooseH 3 年之前
父节点
当前提交
cf8535e76d
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 0 7
      src/GroupedEndpoints/GroupedEndpointsFromApp.php

+ 0 - 7
src/GroupedEndpoints/GroupedEndpointsFromApp.php

@@ -265,13 +265,6 @@ class GroupedEndpointsFromApp implements GroupedEndpointsContract
 
         $methodDocBlock = new DocBlock(u::getReflectedRouteMethod($routeControllerAndMethod)->getDocComment() ?: '');
 
-        $routes = $this->docConfig->get('routes');
-        $configs = $routes[0]['apply']['response_calls']['config'];
-
-        if(isset($configs['ignore_hidden']) && $configs['ignore_hidden'] === true){
-            return collect()->isNotEmpty();
-        }
-
         $shouldIgnoreMethod = collect($methodDocBlock->getTags())
             ->filter(function (Tag $tag) {
                 return Str::lower($tag->getName()) === 'hidefromapidocumentation';