Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.

Commit ceb155f

Browse files
committed
fix bug migrate menu
1 parent 6dfe626 commit ceb155f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Module.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ public function init()
5151
];
5252
}
5353

54-
AppAsset::register(Yii::$app->view);
54+
if (php_sapi_name() !== 'cli') {
55+
AppAsset::register(Yii::$app->view);
56+
}
5557

5658
$this->controllerMap = [
5759
'menu' => [

0 commit comments

Comments
 (0)