/** * Read configuration from config.php file */ private function readConfig($configFile) { if (!file_exists($configFile)) { RestoLogUtil::httpError(4000); } $config = (include $configFile); /* * Set global debug mode */ if (isset($config['general']['debug'])) { RestoLogUtil::$debug = $config['general']['debug']; } /* * Set white list for CORS */ if (isset($config['general']['corsWhiteList'])) { $this->corsWhiteList = $config['general']['corsWhiteList']; } return $config; }