-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #54970 [DependencyInjection] Process PHP configs using the Contai…
…nerConfigurator (MatTheCat) This PR was merged into the 7.1 branch. Discussion ---------- [DependencyInjection] Process PHP configs using the ContainerConfigurator | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #54852 | License | MIT Since #52843, `ContainerConfigurator::extension` is not called anymore which means `ParamConfigurator`s are no longer processed and converted to strings, and make nodes validation fail: e.g. `framework.secret` would receive an `EnvConfigurator` and throw because it is not a scalar. Commits ------- e6dc6be [DependencyInjection] Process PHP configs using the ContainerConfigurator
- Loading branch information
Showing
3 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...y/Component/DependencyInjection/Tests/Fixtures/config/config_builder_env_configurator.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?php | ||
|
||
use Symfony\Component\DependencyInjection\Tests\Fixtures\AcmeConfig; | ||
use function Symfony\Component\DependencyInjection\Loader\Configurator\env; | ||
|
||
return function (AcmeConfig $config) { | ||
$config->color(env('COLOR')); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters