src/Bridge/Symfony/Routing/CachedRouteNameResolver.php 1 location
|
@@ 54-59 (lines=6) @@
|
| 51 |
|
// do nothing |
| 52 |
|
} |
| 53 |
|
|
| 54 |
|
if (func_num_args() > 2) { |
| 55 |
|
$context = func_get_arg(2); |
| 56 |
|
} else { |
| 57 |
|
$context = []; |
| 58 |
|
@trigger_error(sprintf('Method %s() will have a third `$context = []` argument in version 3.0. Not defining it is deprecated since 2.1.', __METHOD__), E_USER_DEPRECATED); |
| 59 |
|
} |
| 60 |
|
|
| 61 |
|
$routeName = $this->decorated->getRouteName($resourceClass, $operationType, $context); |
| 62 |
|
|
src/Bridge/Symfony/Routing/RouteNameResolver.php 1 location
|
@@ 40-45 (lines=6) @@
|
| 37 |
|
*/ |
| 38 |
|
public function getRouteName(string $resourceClass, $operationType /**, array $context = [] **/): string |
| 39 |
|
{ |
| 40 |
|
if (func_num_args() > 2) { |
| 41 |
|
$context = func_get_arg(2); |
| 42 |
|
} else { |
| 43 |
|
$context = []; |
| 44 |
|
@trigger_error(sprintf('Method %s() will have a third `$context = []` argument in version 3.0. Not defining it is deprecated since 2.1.', __METHOD__), E_USER_DEPRECATED); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
$operationType = OperationTypeDeprecationHelper::getOperationType($operationType); |
| 48 |
|
|