1 | <?php |
||
17 | class SendMailPluginAbstractFactory extends AbstractAcMailerFactory |
||
18 | { |
||
19 | /** |
||
20 | * Determine if we can create a service with name |
||
21 | * |
||
22 | * @param ServiceLocatorInterface $serviceLocator |
||
23 | * @param $name |
||
24 | * @param $requestedName |
||
25 | * @return bool |
||
26 | */ |
||
27 | 3 | public function canCreateServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
|
41 | |||
42 | /** |
||
43 | * Create service with name |
||
44 | * |
||
45 | * @param ServiceLocatorInterface $serviceLocator |
||
46 | * @param $name |
||
47 | * @param $requestedName |
||
48 | * @return mixed |
||
49 | */ |
||
50 | 1 | public function createServiceWithName(ServiceLocatorInterface $serviceLocator, $name, $requestedName) |
|
60 | |||
61 | /** |
||
62 | * Fetches a mail service name from the requested plugin name. |
||
63 | * sendMailCustomers -> customers |
||
64 | * sendMail -> default |
||
65 | * |
||
66 | * @param $requestedName |
||
67 | * @return string |
||
68 | */ |
||
69 | 2 | protected function getSpecificServiceName($requestedName) |
|
87 | } |
||
88 |