2 declare(strict_types = 1);
85 $route->setRequirements($requirements);
101 return array_intersect_key(
103 array_flip($route->compile()->getPathVariables())
118 foreach (array_keys($route->
getAspects()) as $variableName) {
119 $values[$variableName] = $targetValue;
135 foreach (array_keys($route->
getAspects()) as $variableName) {
136 if (isset($values[$variableName])) {
139 $values[$variableName] = $targetValue;
156 foreach ($this->aspects as $variableName => $aspect) {
160 $value = $aspect->modify();
161 if ($value !==
null) {
162 $substitutes[
'{' . $variableName .
'}'] = $value;
163 $substitutes[
'{!' . $variableName .
'}'] = $value;
167 array_keys($substitutes),
168 array_values($substitutes),
180 protected function resolveType(
Route $route, array &$remainingQueryParameters):
string
182 $type = $remainingQueryParameters[
'type'] ?? 0;
183 $decoratedParameters = $route->getOption(
'_decoratedParameters');
184 if (isset($decoratedParameters[
'type'])) {
185 $type = $decoratedParameters[
'type'];
186 unset($decoratedParameters[
'type']);
187 $remainingQueryParameters = array_replace_recursive(
188 $remainingQueryParameters,
192 return (
string)$type;
200 if (isset($this->variableProcessor)) {