Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where to put Symfony2 custom parameters I need?

I need to have some configuration for my bundle in Symfony2 Where is the best place to put them?
and how can I retrieve them from there?

I used my Default DB parameters in PARAMETERS.INI But I need Extra ones that I can retrieve them personally in code.

like image 567
morteza kavakebi Avatar asked Feb 19 '23 09:02

morteza kavakebi


1 Answers

One should keep his parameters inside the bundles, for instance src/Company/SomeBundle/Resources/config/parameters.yml

like image 94
emix Avatar answered Feb 28 '23 02:02

emix