Behat\Testwork\ServiceContainer\Configuration\ConfigurationLoader::loadFileConfiguration PHP Method

loadFileConfiguration() protected method

Loads information from YAML configuration file.
protected loadFileConfiguration ( string $configPath, string $profile ) : array
$configPath string Config file path
$profile string Profile name
return array
    protected function loadFileConfiguration($configPath, $profile)
    {
        if (!is_file($configPath) || !is_readable($configPath)) {
            throw new ConfigurationLoadingException(sprintf('Configuration file `%s` not found.', $configPath));
        }
        $basePath = rtrim(dirname($configPath), DIRECTORY_SEPARATOR);
        $config = (array) Yaml::parse(file_get_contents($configPath));
        return $this->loadConfigs($basePath, $config, $profile);
    }