@@ 45-51 (lines=7) @@ | ||
42 | */ |
|
43 | public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/*, string $operationName = null*/): string |
|
44 | { |
|
45 | if (func_num_args() >= 4) { |
|
46 | $operationName = func_get_arg(3); |
|
47 | } else { |
|
48 | @trigger_error(sprintf('Method %s() will have a 4th `string $operationName` argument in version 3.0. Not defining it is deprecated since 2.1.', __METHOD__), E_USER_DEPRECATED); |
|
49 | ||
50 | $operationName = null; |
|
51 | } |
|
52 | ||
53 | if (isset($operation['route_name'])) { |
|
54 | $routeName = $operation['route_name']; |
@@ 37-43 (lines=7) @@ | ||
34 | */ |
|
35 | public function resolveOperationPath(string $resourceShortName, array $operation, $operationType/*, string $operationName = null*/): string |
|
36 | { |
|
37 | if (func_num_args() >= 4) { |
|
38 | $operationName = func_get_arg(3); |
|
39 | } else { |
|
40 | @trigger_error(sprintf('Method %s() will have a 4th `string $operationName` argument in version 3.0. Not defining it is deprecated since 2.1.', __METHOD__), E_USER_DEPRECATED); |
|
41 | ||
42 | $operationName = null; |
|
43 | } |
|
44 | ||
45 | if (isset($operation['path'])) { |
|
46 | return $operation['path']; |
@@ 122-126 (lines=5) @@ | ||
119 | { |
|
120 | $resourceClass = $operationName = null; |
|
121 | ||
122 | if (func_num_args() >= 2) { |
|
123 | $resourceClass = func_get_arg(1); |
|
124 | } else { |
|
125 | @trigger_error(sprintf('Method %s() will have a 2nd `string $resourceClass` argument in version 3.0. Not defining it is deprecated since 2.2.', __METHOD__), E_USER_DEPRECATED); |
|
126 | } |
|
127 | ||
128 | if (func_num_args() >= 3) { |
|
129 | $operationName = func_get_arg(2); |
|
@@ 128-132 (lines=5) @@ | ||
125 | @trigger_error(sprintf('Method %s() will have a 2nd `string $resourceClass` argument in version 3.0. Not defining it is deprecated since 2.2.', __METHOD__), E_USER_DEPRECATED); |
|
126 | } |
|
127 | ||
128 | if (func_num_args() >= 3) { |
|
129 | $operationName = func_get_arg(2); |
|
130 | } else { |
|
131 | @trigger_error(sprintf('Method %s() will have a 3rd `string $operationName = null` argument in version 3.0. Not defining it is deprecated since 2.2.', __METHOD__), E_USER_DEPRECATED); |
|
132 | } |
|
133 | ||
134 | $doctrineOrmPaginator = new DoctrineOrmPaginator($queryBuilder, $this->useFetchJoinCollection($queryBuilder)); |
|
135 | $doctrineOrmPaginator->setUseOutputWalkers($this->useOutputWalkers($queryBuilder)); |