| @@ 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(); |
|
| @@ 172-176 (lines=5) @@ | ||
| 169 | */ |
|
| 170 | private function getSwaggerOperation(string $resourceClass, ResourceMetadata $resourceMetadata, string $operationName, array $operation, string $prefixedShortName, bool $collection) : array |
|
| 171 | { |
|
| 172 | if ($collection) { |
|
| 173 | $method = $this->operationMethodResolver->getCollectionOperationMethod($resourceClass, $operationName); |
|
| 174 | } else { |
|
| 175 | $method = $this->operationMethodResolver->getItemOperationMethod($resourceClass, $operationName); |
|
| 176 | } |
|
| 177 | ||
| 178 | $methodSwagger = strtolower($method); |
|
| 179 | $swaggerOperation = $operation['swagger_context'] ?? []; |
|