This commit is contained in:
2019-12-24 13:54:32 +03:00
parent 6db4e4252b
commit 1ce2058830
6 changed files with 84 additions and 33 deletions

View File

@@ -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,
];
}
}
}