Permalink
Browse files

provide backwards comptability support

  • Loading branch information...
laurencei committed Mar 18, 2018
1 parent cdbc598 commit 02f5ad4b7c6a70f322897e4f91f62fc981669307
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/Eye.php
  2. +1 −1 app/Notifications/Notifier.php
@@ -206,7 +206,7 @@ public function getCustomWitnesses($filterIsDue = false)
foreach (config('eyewitness.custom_witnesses', []) as $witness) {
if ($this->isValidWitness($witness)) {
$instance = resolve($witness);
$instance = app($witness);
if ($filterIsDue) {
if ($instance->isDue()) {
$list->push($instance);
@@ -43,7 +43,7 @@ public function sendTo(Recipient $recipient, MessageInterface $message)
$driver = "\\Eyewitness\\Eye\\Notifications\\Drivers\\".ucfirst(strtolower($recipient->type));
if (class_exists($driver)) {
$channel = resolve($driver);
$channel = app($driver);
$channel->fire($recipient, $message);
} else {
app(Eye::class)->logger()->debug('Notification Driver does not exist', $driver);

0 comments on commit 02f5ad4

Please sign in to comment.