Ver código fonte

added ability to choose which config you use

MooseH 3 anos atrás
pai
commit
cf8535e76d
1 arquivos alterados com 0 adições e 7 exclusões
  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';