Skip to content

Commit

Permalink
Merge branch 'release/3.5' into v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoineAugusti committed Feb 26, 2016
2 parents 57f47e5 + 3843234 commit 23f3a41
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 378 deletions.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ CACHE_DRIVER=file
MAILGUN_DOMAIN=dummy
MAILGUN_SECRET=dummy
MAILGUN_PUBKEY=dummy
MANDRILL_SECRET=dummy
MAILCHIMP_SECRET=dummy
EASYREC_APIKEY=dummy

Expand Down
22 changes: 0 additions & 22 deletions app/TeenQuotes/Mail/Facades/MandrillClient.php

This file was deleted.

17 changes: 1 addition & 16 deletions app/TeenQuotes/Mail/MailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace TeenQuotes\Mail;

use TeenQuotes\Mail\Transport\MandrillTransport;

class MailServiceProvider extends \Illuminate\Mail\MailServiceProvider
{
public function register()
Expand All @@ -21,6 +19,7 @@ public function register()

$this->registerViewComposers();

// Register a custom mailer to automatically inline CSS
$this->app->bindShared('mailer', function ($app) use ($me) {
$me->registerSwiftMailer();

Expand Down Expand Up @@ -53,20 +52,6 @@ public function register()
});
}

/**
* Register the Mandrill Swift Transport instance.
*
* @param array $config
*/
protected function registerMandrillTransport($config)
{
$mandrill = $this->app['config']->get('services.mandrill', []);

$this->app->bindShared('swift.transport', function () use ($mandrill) {
return new MandrillTransport($mandrill['secret']);
});
}

private function registerViewComposers()
{
// Welcome email
Expand Down
8 changes: 4 additions & 4 deletions app/TeenQuotes/Mail/MailSwitcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public function __construct($driver)
Config::set('mail.from', Config::get('mail.from.smtp'));
break;

case 'mandrill':
// Switch to Mandrill
Config::set('mail.driver', 'mandrill');
case 'mailgun':
// Switch to Mailgun
Config::set('mail.driver', 'mailgun');
Config::set('mail.from', Config::get('mail.from'));
break;
}
Expand All @@ -68,7 +68,7 @@ public function __construct($driver)
*/
public static function getAvailableDrivers()
{
return ['smtp', 'mandrill'];
return ['smtp', 'mailgun'];
}

/**
Expand Down
80 changes: 0 additions & 80 deletions app/TeenQuotes/Mail/Mandrill.php

This file was deleted.

56 changes: 0 additions & 56 deletions app/TeenQuotes/Mail/MandrillServiceProvider.php

This file was deleted.

32 changes: 0 additions & 32 deletions app/TeenQuotes/Mail/Transport/MandrillTransport.php

This file was deleted.

Loading

0 comments on commit 23f3a41

Please sign in to comment.