We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b87f0b commit bc9298eCopy full SHA for bc9298e
Bootstrap.php
@@ -3,6 +3,7 @@
3
namespace yii2mod\cms;
4
5
use yii\base\BootstrapInterface;
6
+use yii\console\Application as ConsoleApplication;
7
8
/**
9
* Class Bootstrap
@@ -23,7 +24,7 @@ public function bootstrap($app): void
23
24
];
25
}
26
- if (!$app->hasModule('comment')) {
27
+ if (!$app->hasModule('comment') && !($app instanceof ConsoleApplication)) {
28
$app->setModule('comment', ['class' => 'yii2mod\comments\Module']);
29
30
0 commit comments