Skip to content

Commit

Permalink
Remove references to deprecated dispatch alias
Browse files Browse the repository at this point in the history
fixes #27
  • Loading branch information
MisterPhilip committed Mar 20, 2019
1 parent 2dc91a1 commit f988c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@ public function handle()
$this->info("The application is now live! Total downtime: " . Carbon::now()->diffForHumans($startingTime, true, true, 6));

// Fire the event
Event::fire(new MaintenanceModeDisabled($data['time'], $data['message'], $data['view'], $data['retry']));
Event::dispatch(new MaintenanceModeDisabled($data['time'], $data['message'], $data['view'], $data['retry']));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function handle()

// Fire an event
$payload = $this->getDownFilePayload();
Event::fire(new MaintenanceModeEnabled($payload['time'], $payload['message'], $payload['view'], $payload['retry'], $payload['allowed']));
Event::dispatch(new MaintenanceModeEnabled($payload['time'], $payload['message'], $payload['view'], $payload['retry'], $payload['allowed']));
return true;
}

Expand Down

0 comments on commit f988c51

Please sign in to comment.