I'm having issues to override options->headers in environment configurations.
I have in config.yml the default configuration which should apply for all envs besides production.
(especially important as I have the auth key in the headers)
Unfortunately its using still the config.yaml configuration instead of the one from config_production.yml.
When checking with debug:config I found out that the keys are just added as numerics instead of by their actual key.
E.g. I added
foobar: "test"
in the headers section in staging and I'm getting the following output:
I found a similar issue reported in
https://github.com/symfony/symfony/issues/18988
where the proposed fix was to use useAttributeAsKey in the treebuilder.
Any other ideas or options to achieve to add or override of headers in an environment config?
@Thomas-Pamono thank you for reporting. I was able to repeat the problem. The same issue was with form_params option too. I fixed it and also wrote the test. Could you please check PR #248 ?
I'm having issues to override options->headers in environment configurations. I have in config.yml the default configuration which should apply for all envs besides production. (especially important as I have the auth key in the headers)
Unfortunately its using still the config.yaml configuration instead of the one from config_production.yml.
When checking with debug:config I found out that the keys are just added as numerics instead of by their actual key. E.g. I added foobar: "test" in the headers section in staging and I'm getting the following output:
while it should show
I found a similar issue reported in https://github.com/symfony/symfony/issues/18988 where the proposed fix was to use useAttributeAsKey in the treebuilder. Any other ideas or options to achieve to add or override of headers in an environment config?
thanks in advance!