You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \LogicException(sprintf('You should either pass a "%s" instance or provide the $parameters argument of the "%s" method.', SymfonyContainerInterface::class, __METHOD__));
60
+
}
51
61
}
52
62
53
63
/**
@@ -142,9 +152,7 @@ private function resolve($value)
142
152
return$value;
143
153
}
144
154
145
-
$container = $this->container;
146
-
147
-
$escapedValue = preg_replace_callback('/%%|%([^%\s]++)%/', function ($match) use ($container, $value) {
155
+
$escapedValue = preg_replace_callback('/%%|%([^%\s]++)%/', function ($match) use ($value) {
148
156
// skip %%
149
157
if (!isset($match[1])) {
150
158
return'%%';
@@ -154,7 +162,7 @@ private function resolve($value)
154
162
thrownewRuntimeException(sprintf('Using "%%%s%%" is not allowed in routing configuration.', $match[1]));
155
163
}
156
164
157
-
$resolved = $container->getParameter($match[1]);
165
+
$resolved = ($this->paramFetcher)($match[1]);
158
166
159
167
if (is_string($resolved) || is_numeric($resolved)) {
0 commit comments