I am trying to pass a variable from PHP config file to a YAML file, I am not sure it will work or not as I cannot test it because of some token issues which is yet to be provided by client.
What I did is:
In PHP file Config.php made an object of class Config:
$obj = new Config();
$obj->processEnv();
$obj->define('PROD_PASSWORD', '12345');
In YAML file:
imports:
- { resource: Config.php }
prod:
doctrine:
class: sfDoctrineDatabase
param:
username: username
password: %PROD_PASSWORD%
Please advise that is it a good practice to do or there are other ways I can achieve this?