public function __construct(array $params = []) { $this->setParams($params); $this->setEnabled(true); // Set empty config param if not exists if (!$this->hasParam('config')) { $this->setParam('config', []); } }