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 \InvalidArgumentException(\sprintf('Could not resolve argument "%s" for "%s".', $type.' $'.$parameter->getName(), $path), 0, $e);
224
-
}
225
-
trigger_deprecation('symfony/dependency-injection', '7.4', 'Using fluent builders for semantic configuration is deprecated, instantiate the "%s" class with the config array as argument and return it instead in "%s".', $type, $path);
226
-
$configBuilders[] = $configBuilder;
227
-
$arguments[] = $configBuilder;
194
+
thrownew \InvalidArgumentException(\sprintf('Could not resolve argument "%s" for "%s".', $type.' $'.$parameter->getName(), $path));
228
195
}
229
196
}
230
197
@@ -234,62 +201,5 @@ private function callConfigurator(callable $callback, ContainerConfigurator $con
if (!class_exists(ConfigBuilderGenerator::class)) {
249
-
thrownew \LogicException('You cannot use the config builder as the Config component is not installed. Try running "composer require symfony/config".');
250
-
}
251
-
252
-
if (null === $this->generator) {
253
-
thrownew \LogicException('You cannot use the ConfigBuilders without providing a class implementing ConfigBuilderGeneratorInterface.');
254
-
}
255
-
256
-
// If class exists and implements ConfigBuilderInterface
257
-
if (class_exists($namespace) && is_subclass_of($namespace, ConfigBuilderInterface::class)) {
258
-
returnnew$namespace();
259
-
}
260
-
261
-
// If it does not start with Symfony\Config\ we don't know how to handle this
262
-
if (!str_starts_with($namespace, 'Symfony\\Config\\')) {
263
-
thrownewInvalidArgumentException(\sprintf('Could not find or generate class "%s".', $namespace));
thrownewInvalidArgumentException('You can only use "root" ConfigBuilders from "Symfony\\Config\\" namespace. Nested classes like "Symfony\\Config\\Framework\\CacheConfig" cannot be used.');
if (!$extensioninstanceof ConfigurationExtensionInterface) {
280
-
thrownew \LogicException(\sprintf('You cannot use the config builder for "%s" because the extension does not implement "%s".', $namespace, ConfigurationExtensionInterface::class));
0 commit comments