diff options
author | Avi Goldman <avrahamymgoldman@gmail.com> | 2016-06-09 07:56:50 -0400 |
---|---|---|
committer | Avi Goldman <avrahamymgoldman@gmail.com> | 2016-06-09 07:56:50 -0400 |
commit | 1e6984319e51bf700ee9c1c9ad3435a013d3ac7f (patch) | |
tree | aea0e009abf5778d938acde8078474d7d23c5374 /lib/SendGridCompatibility/SendGrid.php | |
parent | aac8412f0b6a12dd26b21e891a6f216e0a1c88e2 (diff) | |
download | php-sparkpost-1e6984319e51bf700ee9c1c9ad3435a013d3ac7f.zip php-sparkpost-1e6984319e51bf700ee9c1c9ad3435a013d3ac7f.tar.gz php-sparkpost-1e6984319e51bf700ee9c1c9ad3435a013d3ac7f.tar.bz2 |
FAD-3148 basic non-functioning base class
Diffstat (limited to 'lib/SendGridCompatibility/SendGrid.php')
-rw-r--r-- | lib/SendGridCompatibility/SendGrid.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/lib/SendGridCompatibility/SendGrid.php b/lib/SendGridCompatibility/SendGrid.php deleted file mode 100644 index c5e84c1..0000000 --- a/lib/SendGridCompatibility/SendGrid.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - -namespace SparkPost\SendGridCompatibility; - -use SparkPost\SparkPost; - -class SendGrid -{ - private $sparky; - - 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); - } - - $this->sparky = new SparkPost($httpAdapter, $opts); - } - - public function send(Email $email) - { - $this->sparky->transmission->send($email->toSparkPostTransmission()); - } -} |