Skip to content

Commit

Permalink
use fix class path #1927
Browse files Browse the repository at this point in the history
  • Loading branch information
nadar committed Aug 27, 2019
1 parent 1b0719a commit 1ff2eac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/console/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use yii\console\Controller as BaseController;
use luya\helpers\ObjectHelper;
use yii\base\InvalidCallException;
use yii\console\Application;

/**
* Console Controller base class.
Expand All @@ -25,7 +24,7 @@ public function init()
parent::init();

// Ensure the console command is running under web application object.
if (!ObjectHelper::isInstanceOf(Yii::$app, Application::class, false)) {
if (!ObjectHelper::isInstanceOf(Yii::$app, 'yii\console\Application', false)) {
throw new InvalidCallException("The console controller can only run within a console Application context.");
}
}
Expand Down

0 comments on commit 1ff2eac

Please sign in to comment.