public function read($allModuleInfo = false, $additionalOptions = null)
{
$tempPath = App::tempBasePath();
if ($tempPath == '/') {
// if it equals to '/', this is because realpath has returned false in the application.init.php
// so this is because the path doesn't exist.
throw new Exception('Application temp directory doesn\'t exist !', 3);
}
if (!is_writable($tempPath)) {
throw new Exception('Application temp base directory is not writable -- (' . $tempPath . ')', 4);
}
if (!is_writable(App::logPath())) {
throw new Exception('Application log directory is not writable -- (' . App::logPath() . ')', 4);
}
$this->config = $this->readConfigFiles($this->configFileName, $additionalOptions);
$this->prepareConfig($allModuleInfo);
return $this->config;
}