PHP Class AcMailer\Service\Factory\MailServiceAbstractFactory

Inheritance: extends AcMailer\Factory\AbstractAcMailerFactory
ファイルを表示 Open project: acelaya/zf2-acmailer Class Usage Examples

Protected Properties

Property Type Description
$mailOptions AcMailer\Options\MailOptions

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : object Create an object

Protected Methods

Method Description
attachMailListeners ( AcMailer\Event\MailListenerAwareInterface $service, Interop\Container\ContainerInterface $container ) Attaches the preconfigured mail listeners to the mail service
createHelperPluginManager ( Interop\Container\ContainerInterface $container ) : Zend\View\HelperPluginManager Creates a view helper manager
createMessage ( ) : Zend\Mail\Message
createRenderer ( Interop\Container\ContainerInterface $container ) : Zend\View\Renderer\RendererInterface
createTransport ( Interop\Container\ContainerInterface $container ) : Zend\Mail\Transport\TransportInterface
getSpecificConfig ( Interop\Container\ContainerInterface $container, $configKey ) : array Returns a specific configuration defined by provided key
setupTransportConfig ( Zend\Mail\Transport\TransportInterface $transport ) : Zend\Mail\Transport\TransportInterface

Method Details

__invoke() public method

Create an object
public __invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : object
$container Interop\Container\ContainerInterface
$requestedName string
$options array
return object

attachMailListeners() protected method

Attaches the preconfigured mail listeners to the mail service
protected attachMailListeners ( AcMailer\Event\MailListenerAwareInterface $service, Interop\Container\ContainerInterface $container )
$service AcMailer\Event\MailListenerAwareInterface
$container Interop\Container\ContainerInterface

createHelperPluginManager() protected method

Creates a view helper manager
protected createHelperPluginManager ( Interop\Container\ContainerInterface $container ) : Zend\View\HelperPluginManager
$container Interop\Container\ContainerInterface
return Zend\View\HelperPluginManager

createMessage() protected method

protected createMessage ( ) : Zend\Mail\Message
return Zend\Mail\Message

createRenderer() protected method

protected createRenderer ( Interop\Container\ContainerInterface $container ) : Zend\View\Renderer\RendererInterface
$container Interop\Container\ContainerInterface
return Zend\View\Renderer\RendererInterface

createTransport() protected method

protected createTransport ( Interop\Container\ContainerInterface $container ) : Zend\Mail\Transport\TransportInterface
$container Interop\Container\ContainerInterface
return Zend\Mail\Transport\TransportInterface

getSpecificConfig() protected method

Returns a specific configuration defined by provided key
protected getSpecificConfig ( Interop\Container\ContainerInterface $container, $configKey ) : array
$container Interop\Container\ContainerInterface
$configKey
return array

setupTransportConfig() protected method

protected setupTransportConfig ( Zend\Mail\Transport\TransportInterface $transport ) : Zend\Mail\Transport\TransportInterface
$transport Zend\Mail\Transport\TransportInterface
return Zend\Mail\Transport\TransportInterface

Property Details

$mailOptions protected_oe property

protected MailOptions,AcMailer\Options $mailOptions
return AcMailer\Options\MailOptions