Skip to content

Commit

Permalink
Fix getDefaultDriver implementation (#15288)
Browse files Browse the repository at this point in the history
  • Loading branch information
anteriovieira authored and taylorotwell committed Sep 6, 2016
1 parent 4bede79 commit d717488
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/Illuminate/Notifications/ChannelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@
class ChannelManager extends Manager implements DispatcherContract, FactoryContract
{
/**
* The default channels used to deliver messages.
* The default channel used to deliver messages.
*
* @var array
* @var string
*/
protected $defaultChannels = ['mail', 'database'];
protected $defaultChannel = 'mail';

/**
* Send the given notification to the given notifiable entities.
Expand Down Expand Up @@ -206,33 +206,33 @@ protected function createDriver($driver)
}

/**
* Get the default channel driver names.
* Get the default channel driver name.
*
* @return array
* @return string
*/
public function getDefaultDriver()
{
return $this->defaultChannels;
return $this->defaultChannel;
}

/**
* Get the default channel driver names.
* Get the default channel driver name.
*
* @return array
* @return string
*/
public function deliversVia()
{
return $this->getDefaultDriver();
}

/**
* Set the default channel driver names.
* Set the default channel driver name.
*
* @param array|string $channels
* @param string $channel
* @return void
*/
public function deliverVia($channels)
public function deliverVia($channel)
{
$this->defaultChannels = (array) $channels;
$this->defaultChannel = $channel;
}
}

0 comments on commit d717488

Please sign in to comment.