title: Why are .env files preferred over .yaml files for environment variables?
body: <p>What is/are the main reason(s), for which <a href="https://symfony.com/" rel="nofollow noreferrer">Symfony</a> preferres to use <strong>.env files</strong> - for holding values of environment variables in them - instead of using <strong>the more flexible .yaml files</strong>?</p>
  <p>I am asking this, because I read <a href="https://github.com/symfony/recipes/pull/501#issuecomment-446235739" rel="nofollow noreferrer">this comment</a>, which states:</p>
  <blockquote>
  <p>It was much simpler when we were using .yaml file.
  <br/>
  I totally understand why we needed to switch to .env file, but IMHO we should rethink everything.</p>
  </blockquote>
  <p>Thank you for your time.</p>