09.
Parameters: The Variables of Configuration
Keep on Learning!
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
If you liked what you've learned so far, dive in! Subscribe to get access to this tutorial plus video, code and script downloads.
Whoops, an error! Please, try again later.
6 Comments
So in 'config_dev.yml' it loads in the config.yml file then the parameters are set, how does config.yml read those parameters if they were set after it was imported? Don't parameters have to be set before they can be read? If you understand what i mean
Not quoting a scalar starting with the “%” indicator character is deprecated since Symfony 3.1
You're right - how fast the world moves :). You now need to put quotes around the parameters. But, not quoting them will still be allowed until Symfony 4 (so you have a few years to change them).
Cheers!
"%cache_type%" and %cache_type% are both allowed for now right?
Hey Ruben!
That's correct, your app won't break if you dont add quotes to your parameters, but it's not recommended, the time will arrive and you won't be able to upgrade to Symfony 4 smoothly
Have a nice day!
Comment Deleted: Error was unrelated to video content.
"Houston: no signs of life"
Start the conversation!