コード例 #1
0
ファイル: Module.php プロジェクト: Abbas-Hashemian/yii2
 /**
  * Constructor.
  * @param string $id the ID of this module.
  * @param Module $parent the parent module (if any).
  * @param array $config name-value pairs that will be used to initialize the object properties.
  */
 public function __construct($id, $parent = null, $config = [])
 {
     $this->id = $id;
     $this->module = $parent;
     parent::__construct($config);
 }
コード例 #2
0
ファイル: Rhoone.php プロジェクト: rhoone/yii2-rhoone
 public function __construct($config = array())
 {
     parent::__construct($config);
     $count = $this->registerComponents();
     Yii::info("{$count} rhoone component(s) registered.", __METHOD__);
 }