src/Genesis/Config.php
public static function loadSettings($iniFile)
    {
        if (!file_exists($iniFile)) {
            throw new \Genesis\Exceptions\InvalidArgument(
                'The provided configuration file is invalid or inaccessible!'
            );
        }

        $settings = parse_ini_file($iniFile, true);

        foreach ($settings['Genesis'] as $option => $value) {
            if (array_key_exists($option, self::$vault)) {
                self::$vault[$option] = $value;
            }
        }

        foreach ($settings['Interfaces'] as $option => $value) {
            if (array_key_exists($option, self::$interfaces)) {
                self::$interfaces[$option] = $value;
            }
        }
    }
public static function loadSettings($iniFile)
    {
        if (!file_exists($iniFile)) {
            throw new \Genesis\Exceptions\InvalidArgument(
                'The provided configuration file is invalid or inaccessible!'
            );
        }

        $settings = parse_ini_file($iniFile, true);

        foreach ($settings['Genesis'] as $option => $value) {
            if (array_key_exists($option, self::$vault)) {
                self::$vault[$option] = $value;
            }
        }

        foreach ($settings['Interfaces'] as $option => $value) {
            if (array_key_exists($option, self::$interfaces)) {
                self::$interfaces[$option] = $value;
            }
        }
    }
public static function loadSettings ( $ iniFile ) { if ( ! file_exists ( $ iniFile ) ) { throw new \ Genesis \ Exceptions \ InvalidArgument ( 'The provided configuration file is invalid or inaccessible!' ) ; } $ settings = parse_ini_file ( $ iniFile , true ) ; foreach ( $ settings [ 'Genesis' ] as $ option => $ value ) { if ( array_key_exists ( $ option , self :: $ vault ) ) { self :: $ vault [ $ option ] = $ value ; } } foreach ( $ settings [ 'Interfaces' ] as $ option => $ value ) { if ( array_key_exists ( $ option , self :: $ interfaces ) ) { self :: $ interfaces [ $ option ] = $ value ; } } }
Load settings from an ini File

@param string $iniFile Path to an ini file containing the settings

@throws \Genesis\Exceptions\InvalidArgument()
Load settings from an ini File