Created
November 15, 2012 20:43
-
-
Save wesleywillians/4081122 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | |
return $transport; | |
}, | |
'SONUser\Service\User' => function($service) { | |
return new Service\User($service->get('Doctrine\ORM\EntityManager'),$service->get('SONUser\Mail\Transport')); | |
}, | |
), | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment