Explorar o código

added ability to choose which config you use

MooseH %!s(int64=3) %!d(string=hai) anos
pai
achega
cf8535e76d
Modificáronse 1 ficheiros con 0 adicións e 7 borrados
  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';