Difference between parameters.yml and config.yml in Symfony2

symfony

Solution

Nope, nope, nope.

`parameters.yml` is for passwords and server specific parameters such as database connection information.

The main difference between `config.yml` (and all the other config files) and `parameters.yml` is that `parameters.yml` should never be checked in to your source control system. Doing so will expose your passwords and other private information to whomever has access to your source code.

Problem

I don't understand the difference between these two ways of setting global constants in Symfony2. Is it only about being able to set default values and types in config.yml (+configuration.php) ?

Original source