diff options
Diffstat (limited to 'lib/SendGridCompatibility/SendGrid.php')
-rw-r--r-- | lib/SendGridCompatibility/SendGrid.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/lib/SendGridCompatibility/SendGrid.php b/lib/SendGridCompatibility/SendGrid.php index e5b21e6..1671e6b 100644 --- a/lib/SendGridCompatibility/SendGrid.php +++ b/lib/SendGridCompatibility/SendGrid.php @@ -3,14 +3,12 @@ namespace SparkPost\SendGridCompatibility; use SparkPost\SparkPost; -class SendGrid -{ +class SendGrid{ private $sparky; - public function __construct($username, $password, $options = null, $httpAdapter) - { - // username isn't used in our system - $opts = array('key' => $password); + public function __construct($username, $password, $options = null, $httpAdapter) { + //username isn't used in our system + $opts = array('key'=>$password); if (!is_null($options)) { $opts = array_merge($opts, $options); } @@ -18,10 +16,8 @@ class SendGrid $this->sparky = new SparkPost($httpAdapter, $opts); } - public function send(Email $email) - { + public function send(Email $email) { $this->sparky->transmission->send($email->toSparkPostTransmission()); } } - ?> |