I created a task in symfony 1.4, and I want to create a mailer based on the app.yml config.
this is my PHP code :
$config = sfConfig::get('app_mailers_mailer_a');
$this->_mymailer = new sfMailer($this->dispatcher, $config['param']);
when I execute the task, and vardump the $config
variable, I get my config information (host, port, etc..).
The problem is in the second line, It stops their, without any error messages, so I think that the way I use the dispatcher (or $config['param']
) is incorrect.
Thanks