Jelix\Core\Config\Compiler::read PHP Method

read() public method

If you are in a CLI script but you want to load a configuration file for a web entry point or vice-versa, you need to indicate the $pseudoScriptName parameter with the name of the entry point
public read ( boolean $allModuleInfo = false, array $additionalOptions = null ) : StdClass
$allModuleInfo boolean may be true for the installer, which needs all informations else should be false, these extra informations are not needed to run the application
$additionalOptions array some options to add to the configuration
return StdClass an object which contains configuration values
    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;
    }