1 | <?php |
||
22 | class Module extends \yii\base\Module |
||
23 | { |
||
24 | const CONSOLE_CONTROLLER_MAP = [ |
||
25 | 'create' => [ |
||
26 | 'class' => 'assayerpro\sitemap\console\CreateController', |
||
27 | ], |
||
28 | ]; |
||
29 | /** |
||
30 | * The namespace that controller classes are in. |
||
31 | * |
||
32 | * @var string |
||
33 | * @access public |
||
34 | */ |
||
35 | public $controllerNamespace = 'assayerpro\sitemap\controllers'; |
||
36 | |||
37 | public function init() |
||
38 | { |
||
39 | parent::init(); |
||
40 | if (\yii::$app instanceof Application) { |
||
41 | $this->controllerMap = self::CONSOLE_CONTROLLER_MAP; |
||
42 | } |
||
43 | } |
||
44 | |||
45 | public function getComponent() { |
||
57 | } |
||
58 |