Skip to content
Permalink
Browse files

Add check before calling methods that may not exist.

  • Loading branch information...
markstory committed May 1, 2018
1 parent 933151f commit 1f6d066d7b7dff689e335c5e3659af3ea5b1d1e5
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/Console/CommandRunner.php
@@ -372,7 +372,9 @@ protected function loadRoutes()
{
$builder = Router::createRouteBuilder('/');
$this->app->routes($builder);
if ($this->app instanceof HttpApplicationInterface) {
$this->app->routes($builder);
}
if ($this->app instanceof PluginApplicationInterface) {
$this->app->pluginRoutes($builder);
}

0 comments on commit 1f6d066

Please sign in to comment.
You can’t perform that action at this time.