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
* 7.4:
[Config][DependencyInjection] Deprecate the fluent PHP format for semantic configuration
[Routing] Allow when@env inside `new RoutesConfig()` trees
[Messenger] Simplify code
[DependencyInjection] Split ImportsConfig and ParametersConfig out of ServicesConfig
if (isset($services['_defaults']) || isset($services['_instanceof'])) {
135
-
thrownewInvalidArgumentException('The $services argument should not contain "_defaults" or "_instanceof" keys, use the $defaults and $instanceof parameters instead.');
thrownewInvalidArgumentException(\sprintf('Invalid key "%s" returned for the "%s" config builder; none or "services" expected in file "%s".', $key, get_debug_type($config), $path));
thrownewInvalidArgumentException(\sprintf('Invalid key "%s" returned for the "%s" config builder; none or "%s" expected in file "%s".', $key, get_debug_type($config), $expectedKey, $path));
thrownew \InvalidArgumentException(\sprintf('Could not resolve argument "%s" for "%s".', $type.' $'.$parameter->getName(), $path), 0, $e);
233
243
}
244
+
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);
234
245
$configBuilders[] = $configBuilder;
235
246
$arguments[] = $configBuilder;
236
247
}
@@ -276,7 +287,7 @@ private function configBuilder(string $namespace): ConfigBuilderInterface
276
287
thrownewInvalidArgumentException(\sprintf('Could not find or generate class "%s".', $namespace));
277
288
}
278
289
279
-
if (is_a($namespace, ServicesConfig::class, true)) {
0 commit comments