Ignore LINK and UNLINK methods

This commit is contained in:
Floran Brutel 2018-04-12 16:09:22 +02:00
parent a0960d8f78
commit 7aa4c829b7
No known key found for this signature in database
GPG Key ID: 5F489E97DDFCBEBC

View File

@ -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];
}