protected static function getConfFromFile($filename, $nonExistentValue = [])
    {
        if (file_exists($filename)) {
            $yaml = file_get_contents($filename);
            return self::getConfFromContents($yaml, $filename);
        }
        return $nonExistentValue;
    }
protected static function getConfFromFile($filename, $nonExistentValue = [])
    {
        if (file_exists($filename)) {
            $yaml = file_get_contents($filename);
            return self::getConfFromContents($yaml, $filename);
        }
        return $nonExistentValue;
    }
protected static function getConfFromFile ( $ filename , $ nonExistentValue = [ ] ) { if ( file_exists ( $ filename ) ) { $ yaml = file_get_contents ( $ filename ) ; return self :: getConfFromContents ( $ yaml , $ filename ) ; } return $ nonExistentValue ; }
Loads configuration from Yaml file or returns given value if the file doesn't exist

@param string $filename filename
@param mixed $nonExistentValue value used if filename is not found
@return array
@throws ConfigurationException
Loads configuration from Yaml file or returns given value if the file doesn t exist