Skip to content

Commit

Permalink
fix bug in senders
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Mar 8, 2016
1 parent 2ce7841 commit ad012dd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

All notable changes to `laravel-backup` will be documented in this file.

### 3.0.1 - 2016-03-08

- fixed bug in the mail and slack notification senders

### 3.0.0 - 2016-03-08

Complete rewrite with lots of new features:
Expand Down
10 changes: 6 additions & 4 deletions src/Notifications/Senders/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,24 @@

namespace Spatie\Backup\Notifications\Senders;

use Illuminate\Contracts\Config\Repository;
use Illuminate\Contracts\Mail\Mailer;
use Illuminate\Mail\Message;
use Spatie\Backup\Notifications\BaseSender;

class Mail extends BaseSender
{
/** @var \Illuminate\Contracts\Mail\Mailer */
/** @var Mailer */
protected $mailer;

/** @var array */
protected $config;

/**
* @param \Illuminate\Contracts\Mail\Mailer $mailer
* @param \Illuminate\Contracts\Config\Repository $config
* @param Mailer $mailer
* @param Repository $config
*/
public function __construct($mailer, $config)
public function __construct(Mailer $mailer, Repository $config)
{
$this->config = $config->get('laravel-backup.notifications.mail');

Expand Down
6 changes: 4 additions & 2 deletions src/Notifications/Senders/Slack.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

namespace Spatie\Backup\Notifications\Senders;

use Illuminate\Contracts\Config\Repository;
use Maknz\Slack\Client;
use Spatie\Backup\Notifications\BaseSender;

class Slack extends BaseSender
Expand All @@ -14,9 +16,9 @@ class Slack extends BaseSender

/**
* @param \Maknz\Slack\Client $client
* @param \Illuminate\Contracts\Config\Repository $config
* @param Repository $config
*/
public function __construct($client, $config)
public function __construct(Client $client, Repository $config)
{
$this->config = $config->get('laravel-backup.notifications.slack');

Expand Down

0 comments on commit ad012dd

Please sign in to comment.