public static function fromFile($fileName) {
        if (!file_exists($fileName))
            throw new SettingsException("file $fileName does not exist");
        return static::fromString(file_get_contents($fileName), dirname($fileName));
    }
public static function fromFile($fileName) {
        if (!file_exists($fileName))
            throw new SettingsException("file $fileName does not exist");
        return static::fromString(file_get_contents($fileName), dirname($fileName));
    }
public static function fromFile ( $ fileName ) { if ( ! file_exists ( $ fileName ) ) throw new SettingsException ( "file $fileName does not exist" ) ; return static :: fromString ( file_get_contents ( $ fileName ) , dirname ( $ fileName ) ) ; }
Creates settings from a JSON-encoded file.
@param string $fileName
@return Settings
Creates settings from a JSON - encoded file .