| @@ 35-41 (lines=7) @@ | ||
| 32 | */ |
|
| 33 | public function resolveOperationPath(string $resourceShortName, array $operation, bool $collection/*, string $operationName = null*/): string |
|
| 34 | { |
|
| 35 | if (func_num_args() >= 4) { |
|
| 36 | $operationName = func_get_arg(3); |
|
| 37 | } else { |
|
| 38 | @trigger_error(sprintf('Method %s() will have a 4th `string $operationName = null` argument in version 3.0. Not defining it is deprecated since 2.0.10.', __METHOD__), E_USER_DEPRECATED); |
|
| 39 | ||
| 40 | $operationName = null; |
|
| 41 | } |
|
| 42 | ||
| 43 | if (isset($operation['path'])) { |
|
| 44 | return $operation['path']; |
|
| @@ 47-53 (lines=7) @@ | ||
| 44 | */ |
|
| 45 | public function resolveOperationPath(string $resourceShortName, array $operation, bool $collection/*, string $operationName = null*/): string |
|
| 46 | { |
|
| 47 | if (func_num_args() >= 4) { |
|
| 48 | $operationName = func_get_arg(3); |
|
| 49 | } else { |
|
| 50 | @trigger_error(sprintf('Method %s() will have a 4th `string $operationName` argument in version 3.0. Not defining it is deprecated since 2.0.10.', __METHOD__), E_USER_DEPRECATED); |
|
| 51 | ||
| 52 | $operationName = null; |
|
| 53 | } |
|
| 54 | ||
| 55 | if (isset($operation['route_name'])) { |
|
| 56 | $routeName = $operation['route_name']; |
|