PHP Class AcMailer\Controller\Plugin\Factory\SendMailPluginAbstractFactory

Author: Alejandro Celaya Alastrué
Inheritance: extends AcMailer\Factory\AbstractAcMailerFactory
显示文件 Open project: acelaya/zf2-acmailer Class Usage Examples

Public Methods

Method Description
__invoke ( Interop\Container\ContainerInterface $container, string $requestedName, array $options = null ) : object Create an object
canCreate ( Interop\Container\ContainerInterface $container, $requestedName ) : boolean Determine if we can create a service with name

Protected Methods

Method Description
camelCaseToUnderscore ( $value )
getSpecificServiceName ( $requestedName ) : string Fetches a mail service name from the requested plugin name.

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

camelCaseToUnderscore() protected method

protected camelCaseToUnderscore ( $value )

canCreate() public method

Determine if we can create a service with name
public canCreate ( Interop\Container\ContainerInterface $container, $requestedName ) : boolean
$container Interop\Container\ContainerInterface
$requestedName
return boolean

getSpecificServiceName() protected method

sendMailCustomers -> customers sendMail -> default
protected getSpecificServiceName ( $requestedName ) : string
$requestedName
return string