mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-03-03 08:34:02 +01:00
Refactored for events system
This commit is contained in:
29
modules/server/Module.php
Normal file
29
modules/server/Module.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?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';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user