mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-09 02:59:27 +03:00
Ignore LINK and UNLINK methods
This commit is contained in:
parent
a0960d8f78
commit
7aa4c829b7
@ -206,6 +206,7 @@ final class SwaggerPhpDescriber implements ModelRegistryAwareInterface
|
||||
$path = $this->normalizePath($route->getPath());
|
||||
$httpMethods = $route->getMethods() ?: Swagger::$METHODS;
|
||||
$httpMethods = array_map('strtolower', $httpMethods);
|
||||
$httpMethods = array_intersect($httpMethods, Swagger::$METHODS);
|
||||
|
||||
yield $method => [$path, $httpMethods];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user