Remove unuse factory

This commit is contained in:
Michael RICOIS 2016-07-26 17:04:09 +02:00
parent 73995fa522
commit 09ad683726

View File

@ -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);
}
}