Skip to content

Instantly share code, notes, and snippets.

View wesleywillians's full-sized avatar

Wesley Willians wesleywillians

View GitHub Profile
public function getServiceConfig()
{
return array(
'factories' => array(
'SONUser\Mail\Transport' => function($sm) {
$config = $sm->get('Config');
$transport = new SmtpTransport();
$options = new SmtpOptions($config['mail']);
$transport->setOptions($options);
'translateAdapter' => array (
'parameters' => array (
'options' => array(
'locale' => 'pt-br',
'content' => '/caminho/para/traducao',
'scan' => 'filename',
'disableNotices' => true
)
)
),