3
0
Fork 0
yii-cron/Module.php

35 lines
648 B
PHP

<?php
namespace dominion\cron;
/**
* cron module definition class
*/
class Module extends \yii\base\Module
{
/**
* {@inheritdoc}
*/
public $controllerNamespace = 'dominion\cron\controllers';
/**
* {@inheritdoc}
*/
public function init()
{
parent::init();
// 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,
];
}
}
}