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);
}