public static function getConfigurationByConfigFile($configFile)
    {
        if (file_exists($configFile) === false) {
            $message = 'Configuration file "%s" not found or accessible.';
            $message = sprintf($message, $configFile);
            throw new \RuntimeException($message, 1415381521);
        }

        $config = Yaml::parse($configFile);
        $configuration = new Configuration($config);

        return $configuration;
    }
public static function getConfigurationByConfigFile($configFile)
    {
        if (file_exists($configFile) === false) {
            $message = 'Configuration file "%s" not found or accessible.';
            $message = sprintf($message, $configFile);
            throw new \RuntimeException($message, 1415381521);
        }

        $config = Yaml::parse($configFile);
        $configuration = new Configuration($config);

        return $configuration;
    }
public static function getConfigurationByConfigFile ( $ configFile ) { if ( file_exists ( $ configFile ) === false ) { $ message = 'Configuration file "%s" not found or accessible.' ; $ message = sprintf ( $ message , $ configFile ) ; throw new \ RuntimeException ( $ message , 1415381521 ) ; } $ config = Yaml :: parse ( $ configFile ) ; $ configuration = new Configuration ( $ config ) ; return $ configuration ; }
Creates a configuration based on a YAML configuration file.

@param string $configFile
@return Configuration
Creates a configuration based on a YAML configuration file .