Skip to content

Commit

Permalink
fix Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-chepurnoi committed May 15, 2017
1 parent e7759cc commit 491f66a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace yii2mod\cms;

use yii\base\BootstrapInterface;
use yii\console\Application as ConsoleApplication;

/**
* Class Bootstrap
Expand All @@ -23,7 +24,7 @@ public function bootstrap($app)
];
}

if (!$app->hasModule('comment')) {
if (!$app->hasModule('comment') && !($app instanceof ConsoleApplication)) {
$app->setModule('comment', ['class' => 'yii2mod\comments\Module']);
}

Expand Down

0 comments on commit 491f66a

Please sign in to comment.