Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdfba70e

Browse files
[DependencyInjection][Config] Remove support for the fluent PHP config format
1 parentbe6dab6 commitdfba70e

File tree

37 files changed

+148
-3414
lines changed

37 files changed

+148
-3414
lines changed

‎UPGRADE-8.0.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Config
3030
* Remove support for accessing the internal scope of the loader in PHP config files, use only its public API instead
3131
* Add argument`$singular` to`NodeBuilder::arrayNode()`
3232
* Add argument`$info` to`ArrayNodeDefinition::canBeDisabled()` and`canBeEnabled()`
33+
* Remove generation of fluent methods in config builders
3334

3435
Console
3536
-------
@@ -115,6 +116,15 @@ DependencyInjection
115116
* Remove`!tagged` tag, use`!tagged_iterator` instead
116117
* Remove the`ContainerBuilder::getAutoconfiguredAttributes()` method, use`getAttributeAutoconfigurators()` instead to retrieve all the callbacks for a specific attribute class
117118
* Add argument`$target` to`ContainerBuilder::registerAliasForArgument()`
119+
* Remove support for the fluent PHP format for semantic configuration, instantiate builders inline with the config array as argument and return them instead:
120+
```diff
121+
-return function (AcmeConfig $config) {
122+
- $config->color('red');
123+
-}
124+
+return new AcmeConfig([
125+
+ 'color' => 'red',
126+
+]);
127+
```
118128

119129
DoctrineBridge
120130
--------------

‎src/Symfony/Component/Config/Builder/ClassBuilder.php‎

Lines changed: 0 additions & 178 deletions
This file was deleted.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp