/** * @throws Exception * @return tx_piwikintegration_config */ public function getConfigObject() { if ($this->checkInstallation()) { return tx_piwikintegration_config::getConfigObject(); } else { throw new \Exception('Piwik is not installed!'); } }