Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Config] Builder: Remove typehints and allow for EnvConfigurator#40903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedApr 22, 2021
This makes me realize that any |
src/Symfony/Component/DependencyInjection/Loader/Configurator/ContainerConfigurator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Loader/Configurator/ParamConfigurator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/DependencyInjection/Loader/Configurator/ParamConfigurator.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Nyholm commentedApr 22, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I cannot figure out why I get this error: |
nicolas-grekas commentedApr 22, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
That's because the function is not autoloaded. This means that we should force-load ContainerConfigurator in the loader. |
Nyholm commentedApr 22, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I tried that before, but I failed "force loading it". Hm.. it works now. I think I have to blame this on incompetence. But this means that a user will have the same issues. Before the ConfigBuilders, this was not an issue because the user would always use |
2a1e163 to77206e2Comparesrc/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
ro0NL left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
🚀
84d1506 to45c99c2CompareNyholm commentedApr 24, 2021
The PR is rebased. Travis and Fabbot are both reporting on unrelated issues. |
derrabus commentedApr 26, 2021
Thank you Tobias. |
Nyholm commentedApr 26, 2021
Thank you for all the reviews and the merge. |
Uh oh!
There was an error while loading.Please reload this page.
Whenwriting documentation we found that we don't really support environment variables in the leaves. Ie, we expect a boolean but you provide
"%env(ENABLE_FOO)%"This PR will also introduce
ParamConfiguratorto allow parameters to be passed as config.The changes to the generated code: