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
After some debugging, I found that the ConfigDebugCommand validates the configuration before resolving the %parameters%, so when the field for ex: "auto_generate_proxy_classes" is validated, it's value is still %kernel.debug% instead of true and them, the exception is thrown =/
I don't know if the validation before the parameters resolution is a desired code flow, if it's not, both should be switched IMHO.
…e processed in the config:debug command (xabbuh)
This PR was merged into the 2.5 branch.
Discussion
----------
[FrameworkBundle] resolve parameters before the configs are processed in the config:debug command
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #11622
| License | MIT
| Doc PR |
If the raw values are passed to the processor, config values don't necessarily have the expected data type. For example, the value of the kernel.debug parameter is a boolean type. But when passed as the raw parameter name, it is a string.
@lyrixx Do you have any objections?
Commits
-------
19f3b47 resolve parameters before the configs are processed
The command "console config:debug" seems broken.
If you try to debug a bundle configuration of a bundle that has a boolean %parameter%, the following exception will be thrown.
This happens (as of now) with AsseticBundle and DoctrineBundle.
I used the following configurations:


I searched for this error, but it does not seems to be reported (yet).
The text was updated successfully, but these errors were encountered: