-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This makes me realize that any |
src/Symfony/Component/DependencyInjection/Loader/Configurator/ContainerConfigurator.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/Loader/Configurator/ParamConfigurator.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/Loader/Configurator/ParamConfigurator.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/Config/Builder/ConfigBuilderGenerator.php
Outdated
Show resolved
Hide resolved
I cannot figure out why I get this error:
|
That's because the function is not autoloaded. This means that we should force-load ContainerConfigurator in the loader. |
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
to
77206e2
Compare
src/Symfony/Component/Config/Tests/Builder/GeneratedConfigTest.php
Outdated
Show resolved
Hide resolved
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
to
45c99c2
Compare
The PR is rebased. Travis and Fabbot are both reporting on unrelated issues. |
Thank you Tobias. |
Thank you for all the reviews and the merge. |
When writing 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
ParamConfigurator
to allow parameters to be passed as config.The changes to the generated code: