Skip to content

Instantly share code, notes, and snippets.

@renepardon
Created January 15, 2013 10:04
Show Gist options
  • Save renepardon/4537664 to your computer and use it in GitHub Desktop.
Save renepardon/4537664 to your computer and use it in GitHub Desktop.
<?php
namespace Mail;
use Zend\ServiceManager\ServiceLocatorInterface;
return array(
'initializers' => array(
function ($instance, ServiceLocatorInterface $serviceLocator) {
if ($instance instanceof Service\MailAwareInterface) {
$mailService = $serviceLocator->get('Mail\Mail');
$instance->setEmailService($mailService);
}
}
),
'factories' => array(
'Mail\Mail' => 'Mail\Service\EmailFactory',
'Mail\Renderer' => 'Mail\Service\RendererFactory',
'Mail\Transport' => 'Mail\Service\TransportFactory'
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment