Webiny\Component\Bootstrap\Environment::loadConfigurations PHP Method

loadConfigurations() private method

Loads all the configurations from a specific environment.
private loadConfigurations ( string $environment ) : ConfigObject
$environment string Environment name.
return Webiny\Component\Config\ConfigObject
    private function loadConfigurations($environment)
    {
        $configs = new ConfigObject([]);
        $configFolder = $this->applicationAbsolutePath . 'App/Config/' . $environment;
        $h = scandir($configFolder);
        foreach ($h as $configFile) {
            if (strpos($configFile, 'yaml') === false) {
                continue;
            }
            $configs->mergeWith($this->config()->yaml($configFolder . DIRECTORY_SEPARATOR . $configFile));
        }
        return $configs;
    }