Skip to content

Commit

Permalink
Ensure that the method "map" exists before calling (#17784)
Browse files Browse the repository at this point in the history
  • Loading branch information
Андрей Соснов authored and taylorotwell committed Feb 6, 2017
1 parent 5b7f3b5 commit 40e4daf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ protected function loadCachedRoutes()
*/
protected function loadRoutes()
{
$this->app->call([$this, 'map']);
if (method_exists($this, 'map')) {
$this->app->call([$this, 'map']);
}
}

/**
Expand Down

0 comments on commit 40e4daf

Please sign in to comment.