mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-13 04:59:24 +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());
|
$path = $this->normalizePath($route->getPath());
|
||||||
$httpMethods = $route->getMethods() ?: Swagger::$METHODS;
|
$httpMethods = $route->getMethods() ?: Swagger::$METHODS;
|
||||||
$httpMethods = array_map('strtolower', $httpMethods);
|
$httpMethods = array_map('strtolower', $httpMethods);
|
||||||
|
$httpMethods = array_intersect($httpMethods, Swagger::$METHODS);
|
||||||
|
|
||||||
yield $method => [$path, $httpMethods];
|
yield $method => [$path, $httpMethods];
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user