Differential D19003 Diff 45602 src/applications/metamta/adapter/PhabricatorMailImplementationSendGridAdapter.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/adapter/PhabricatorMailImplementationSendGridAdapter.php
<?php | <?php | ||||
/** | /** | ||||
* Mail adapter that uses SendGrid's web API to deliver email. | * Mail adapter that uses SendGrid's web API to deliver email. | ||||
*/ | */ | ||||
final class PhabricatorMailImplementationSendGridAdapter | final class PhabricatorMailImplementationSendGridAdapter | ||||
extends PhabricatorMailImplementationAdapter { | extends PhabricatorMailImplementationAdapter { | ||||
const ADAPTERTYPE = 'sendgrid'; | |||||
private $params = array(); | private $params = array(); | ||||
protected function validateOptions(array $options) { | protected function validateOptions(array $options) { | ||||
PhutilTypeSpec::checkMap( | PhutilTypeSpec::checkMap( | ||||
$options, | $options, | ||||
array( | array( | ||||
'api-user' => 'string', | 'api-user' => 'string', | ||||
'api-key' => 'string', | 'api-key' => 'string', | ||||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |