Skip to content

Commit

Permalink
fixed breaking changes in php-mailgun version update
Browse files Browse the repository at this point in the history
  • Loading branch information
BioSin committed Apr 13, 2016
1 parent 2b930c9 commit 4e83eae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "~2.0.4",
"mailgun/mailgun-php": "*",
"mailgun/mailgun-php": "^2.0",
"yiisoft/yii2-twig": "~2.0.3",
"trntv/yii2-aceeditor": "*",
"trntv/yii2-aceeditor": "~2.0",
"php-http/guzzle6-adapter": "~1.0",
"baibaratsky/yii2-serialized-attributes-behavior": "~1.1"
},
"suggest": {
Expand Down
5 changes: 4 additions & 1 deletion src/transports/MailGun.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

namespace yarcode\email\transports;

use Http\Adapter\Guzzle6\Client;
use yarcode\email\interfaces\TransportInterface;
use yii\base\Component;
use yii\helpers\VarDumper;
Expand All @@ -27,7 +28,9 @@ public function init()
assert(isset($this->domain));

parent::init();
$this->_api = new \Mailgun\Mailgun($this->apiKey);

$client = new Client();
$this->_api = new \Mailgun\Mailgun($this->apiKey, $client);
}

/**
Expand Down

0 comments on commit 4e83eae

Please sign in to comment.