| @@ 262-266 (lines=5) @@ | ||
| 259 | */ |
|
| 260 | private function getHydraOperation(string $resourceClass, ResourceMetadata $resourceMetadata, string $operationName, array $operation, string $prefixedShortName, bool $collection) : array |
|
| 261 | { |
|
| 262 | if ($collection) { |
|
| 263 | $method = $this->operationMethodResolver->getCollectionOperationMethod($resourceClass, $operationName); |
|
| 264 | } else { |
|
| 265 | $method = $this->operationMethodResolver->getItemOperationMethod($resourceClass, $operationName); |
|
| 266 | } |
|
| 267 | ||
| 268 | $hydraOperation = $operation['hydra_context'] ?? []; |
|
| 269 | $shortName = $resourceMetadata->getShortName(); |
|
| @@ 190-194 (lines=5) @@ | ||
| 187 | */ |
|
| 188 | private function getSwaggerOperation(string $resourceClass, ResourceMetadata $resourceMetadata, string $operationName, array $operation, string $prefixedShortName, bool $collection) : array |
|
| 189 | { |
|
| 190 | if ($collection) { |
|
| 191 | $method = $this->operationMethodResolver->getCollectionOperationMethod($resourceClass, $operationName); |
|
| 192 | } else { |
|
| 193 | $method = $this->operationMethodResolver->getItemOperationMethod($resourceClass, $operationName); |
|
| 194 | } |
|
| 195 | $methodSwagger = strtolower($method); |
|
| 196 | $swaggerOperation = $operation['swagger_context'] ?? []; |
|
| 197 | $shortName = $resourceMetadata->getShortName(); |
|