public static function fromYaml($configFilePath)
    {
        $configFile = file_get_contents($configFilePath);
        $configArray = Yaml::parse($configFile);

        if (!is_array($configArray)) {
            throw new \RuntimeException(sprintf(
                'File \'%s\' must be valid YAML',
                $configFilePath
            ));
        }

        return new static($configArray, $configFilePath);
    }
public static function fromYaml($configFilePath)
    {
        $configFile = file_get_contents($configFilePath);
        $configArray = Yaml::parse($configFile);

        if (!is_array($configArray)) {
            throw new \RuntimeException(sprintf(
                'File \'%s\' must be valid YAML',
                $configFilePath
            ));
        }

        return new static($configArray, $configFilePath);
    }
public static function fromYaml ( $ configFilePath ) { $ configFile = file_get_contents ( $ configFilePath ) ; $ configArray = Yaml :: parse ( $ configFile ) ; if ( ! is_array ( $ configArray ) ) { throw new \ RuntimeException ( sprintf ( 'File \'%s\' must be valid YAML' , $ configFilePath ) ) ; } return new static ( $ configArray , $ configFilePath ) ; }
Create a new instance of the config class using a Yaml file path.

@param  string $configFilePath Path to the Yaml File
@throws \RuntimeException
@return \Phinx\Config\Config
Create a new instance of the config class using a Yaml file path .