/** * 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); }
public function __construct($config = array()) { parent::__construct($config); $count = $this->registerComponents(); Yii::info("{$count} rhoone component(s) registered.", __METHOD__); }