Symfony 4.4 configuration yaml in tabbed format

In former versions of Symfony, I could set my configuration like this in parameters.yml:

        param1: 'myvalue'

And read its value with $this->getParameter('app.group1.param1').

In Symfony 4.4 this format seems to be not working, and I’m forced to do this in my services.yml file:


The docs only refer to this format and doing otherwise throws an error.

Can I use the old tabbed format somehow?

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *