fix
This commit is contained in:
10
Module.php
10
Module.php
@@ -21,4 +21,14 @@ class Module extends \yii\base\Module
|
||||
|
||||
// custom initialization code goes here
|
||||
}
|
||||
public function bootstrap($app)
|
||||
{
|
||||
if ($app instanceof \yii\console\Application) {
|
||||
$app->controllerMap[$this->id] = [
|
||||
'class' => 'dominion\cron\console\MoleController',
|
||||
'module' => $this,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user