Difference between .yml and config.yml options in Symfony2

I do not understand the difference between the two methods for setting global constants in Symfony2. Is it just about being able to set default values ​​and types in config.yml (+ configuration.php)?

+4
source share
3 answers

No no no.

parameters.yml designed for passwords and server-specific parameters, such as information about connecting to the database.

config.yml ( ) parameters.yml , parameters.yml . , , .

+2

parameters.yml - , . , . paramteters.yml.dist, . parameters.yml, , (, ) .

+3

. config.yml , (parameters.yml, routing.yml, security.yml ..). , .

. - , - , - .

If you have personal information in the configuration files, you can add this file to .gitignoreand determine the default values ​​for your_config.yml.dist. You can then configure the composer to run some script to populate the file your_config.yml, as was done in the standard version of Symfony.

0
source

Source: https://habr.com/ru/post/1537064/


All Articles