src/Yggdrasil/Core/Configuration/AbstractConfiguration.php
private function parseConfiguration(): void
    {
        $configFilePath = dirname(__DIR__, 7) . '/src/' . $this->getConfigPath() . '/config.ini';

        if (!file_exists($configFilePath)) {
            throw new ConfigurationNotFoundException('Configuration file in ' . $configFilePath . ' not found.');
        }

        $this->configuration = parse_ini_file($configFilePath, true);

        if (!$this->isConfigured(['root_namespace', 'env'], 'framework')) {
            throw new MissingConfigurationException(['root_namespace', 'env'], 'framework');
        }
    }
private function parseConfiguration(): void
    {
        $configFilePath = dirname(__DIR__, 7) . '/src/' . $this->getConfigPath() . '/config.ini';

        if (!file_exists($configFilePath)) {
            throw new ConfigurationNotFoundException('Configuration file in ' . $configFilePath . ' not found.');
        }

        $this->configuration = parse_ini_file($configFilePath, true);

        if (!$this->isConfigured(['root_namespace', 'env'], 'framework')) {
            throw new MissingConfigurationException(['root_namespace', 'env'], 'framework');
        }
    }
private function parseConfiguration ( ) : void { $ configFilePath = dirname ( __DIR__ , 7 ) . '/src/' . $ this -> getConfigPath ( ) . '/config.ini' ; if ( ! file_exists ( $ configFilePath ) ) { throw new ConfigurationNotFoundException ( 'Configuration file in ' . $ configFilePath . ' not found.' ) ; } $ this -> configuration = parse_ini_file ( $ configFilePath , true ) ; if ( ! $ this -> isConfigured ( [ 'root_namespace' , 'env' ] , 'framework' ) ) { throw new MissingConfigurationException ( [ 'root_namespace' , 'env' ] , 'framework' ) ; } }
Parses config.ini file into configuration array

@throws ConfigurationNotFoundException if config.ini file doesn't exist in specified path
@throws MissingConfigurationException if root_namespace or env is not configured
Parses config . ini file into configuration array