mirror of
https://github.com/CyanoFresh/SmartHomePHP.git
synced 2026-02-27 06:41:21 +01:00
27 lines
468 B
PHP
27 lines
468 B
PHP
<?php
|
|
|
|
namespace app\components;
|
|
|
|
use app\modules\BaseModule;
|
|
use yii\base\Event;
|
|
use yii\base\InvalidConfigException;
|
|
use yii\console\Application;
|
|
use yii\helpers\VarDumper;
|
|
|
|
/**
|
|
* Class ConsoleApplication
|
|
*
|
|
* @property EventManager $eventManager
|
|
*
|
|
* @package app\components
|
|
*/
|
|
class ConsoleApplication extends Application
|
|
{
|
|
public function init()
|
|
{
|
|
parent::init();
|
|
|
|
$this->eventManager->registerModulesHandlers($this->modules);
|
|
}
|
|
}
|