public function init() { if (!$this->apiKey) { throw new InvalidConfigException('Api key cannot be empty'); } parent::init(); }