Remove unuse factory
This commit is contained in:
parent
73995fa522
commit
09ad683726
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
namespace Application\Factory;
|
||||
|
||||
use Zend\ServiceManager\FactoryInterface;
|
||||
use Zend\ServiceManager\ServiceLocatorInterface;
|
||||
|
||||
class MailerFactory implements FactoryInterface
|
||||
{
|
||||
public function createService(ServiceLocatorInterface $serviceLocator)
|
||||
{
|
||||
$serviceLocator = $serviceLocator->getServiceLocator();
|
||||
$appConfig = $serviceLocator->get('Config');
|
||||
|
||||
// Set transport
|
||||
$config = isset($config['mailer']) ? $config['mailer'] : array()
|
||||
// @todo : configurer le transport
|
||||
// method - foreach method a configuration
|
||||
$transport = \Swift_SendmailTransport::newInstance();
|
||||
|
||||
// Set Mailer
|
||||
return \Swift_Mailer::newInstance($transport);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user