classes/Config.php
public static function setFile($file)
    {
        if (is_file($file)) {
            $options = Yaml::parse(file_get_contents($file));
            self::$instance = new self($options);
            self::$instance->validateOptions();
        } else {
            throw new Exception("Can't find config file at ".$file);
        }
    }
public static function setFile($file)
    {
        if (is_file($file)) {
            $options = Yaml::parse(file_get_contents($file));
            self::$instance = new self($options);
            self::$instance->validateOptions();
        } else {
            throw new Exception("Can't find config file at ".$file);
        }
    }
public static function setFile ( $ file ) { if ( is_file ( $ file ) ) { $ options = Yaml :: parse ( file_get_contents ( $ file ) ) ; self :: $ instance = new self ( $ options ) ; self :: $ instance -> validateOptions ( ) ; } else { throw new Exception ( "Can't find config file at " . $ file ) ; } }
Set options from a YAML file.

@param string $file Path to the YAML file
Set options from a YAML file .