public function canCreate(ContainerInterface $container, $requestedName)
{
/** @var ControllerPluginManager $serviceLocator */
if (strpos($requestedName, 'sendMail') !== 0) {
return false;
}
if ($requestedName === 'sendMail') {
return true;
}
$specificServiceName = $this->getSpecificServiceName($requestedName);
return array_key_exists($specificServiceName, $this->getConfig($container));
}