| @@ 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(); |
|
| @@ 164-168 (lines=5) @@ | ||
| 161 | */ |
|
| 162 | private function getSwaggerOperation(string $resourceClass, ResourceMetadata $resourceMetadata, string $operationName, array $operation, string $prefixedShortName, bool $collection) : array |
|
| 163 | { |
|
| 164 | if ($collection) { |
|
| 165 | $method = $this->operationMethodResolver->getCollectionOperationMethod($resourceClass, $operationName); |
|
| 166 | } else { |
|
| 167 | $method = $this->operationMethodResolver->getItemOperationMethod($resourceClass, $operationName); |
|
| 168 | } |
|
| 169 | ||
| 170 | $methodSwagger = strtolower($method); |
|
| 171 | $swaggerOperation = $operation['swagger_context'] ?? []; |
|