Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/adapter/PhabricatorMailAdapter.php
Show All 17 Lines | abstract class PhabricatorMailAdapter | ||||
final public static function getAllAdapters() { | final public static function getAllAdapters() { | ||||
return id(new PhutilClassMapQuery()) | return id(new PhutilClassMapQuery()) | ||||
->setAncestorClass(__CLASS__) | ->setAncestorClass(__CLASS__) | ||||
->setUniqueMethod('getAdapterType') | ->setUniqueMethod('getAdapterType') | ||||
->execute(); | ->execute(); | ||||
} | } | ||||
/* abstract */ public function getSupportedMessageTypes() { | abstract public function getSupportedMessageTypes(); | ||||
throw new PhutilMethodNotImplementedException(); | abstract public function sendMessage(PhabricatorMailExternalMessage $message); | ||||
} | |||||
/* abstract */ public function sendMessage( | |||||
PhabricatorMailExternalMessage $message) { | |||||
throw new PhutilMethodNotImplementedException(); | |||||
} | |||||
/** | /** | ||||
* Return true if this adapter supports setting a "Message-ID" when sending | * Return true if this adapter supports setting a "Message-ID" when sending | ||||
* email. | * email. | ||||
* | * | ||||
* This is an ugly implementation detail because mail threading is a horrible | * This is an ugly implementation detail because mail threading is a horrible | ||||
* mess, implemented differently by every client in existence. | * mess, implemented differently by every client in existence. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |