mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-02-24 21:31:20 +01:00
30 lines
494 B
PHP
30 lines
494 B
PHP
<?php
|
|
|
|
namespace app\modules\server;
|
|
|
|
use Yii;
|
|
use yii\console\Application;
|
|
|
|
/**
|
|
* server module definition class
|
|
*/
|
|
class Module extends \yii\base\Module
|
|
{
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public $controllerNamespace = 'app\modules\server\controllers';
|
|
|
|
/**
|
|
* @inheritdoc
|
|
*/
|
|
public function init()
|
|
{
|
|
parent::init();
|
|
|
|
if (Yii::$app instanceof Application) {
|
|
$this->controllerNamespace = 'app\modules\server\commands';
|
|
}
|
|
}
|
|
}
|