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

initializeComponentConfigurations() private method

Component configurations are all the configurations inside the specific environment. If configuration name matches a Webiny Framework component, then the configuration is automatically assigned to that component.
    private function initializeComponentConfigurations()
    {
        foreach ($this->webinyComponents as $c) {
            $componentConfig = $this->componentConfigs->get($c, false);
            if ($componentConfig) {
                $class = 'Webiny\\Component\\' . $c . '\\' . $c;
                $method = 'setConfig';
                try {
                    $class::$method($componentConfig);
                } catch (\Exception $e) {
                    // ignore it ... probably user-based component
                }
            }
        }
    }