src/BaseComponent.php
protected function loadConfig(): void
    {
        $configClass = $this->getConfigClass();
        $configDefinitionClass = $this->getConfigDefinitionClass();
        try {
            $this->config = new $configClass(
                $this->getRawConfig(),
                new $configDefinitionClass()
            );
        } catch (InvalidConfigurationException $e) {
            throw new UserException($e->getMessage(), 0, $e);
        }
    }
protected function loadConfig(): void
    {
        $configClass = $this->getConfigClass();
        $configDefinitionClass = $this->getConfigDefinitionClass();
        try {
            $this->config = new $configClass(
                $this->getRawConfig(),
                new $configDefinitionClass()
            );
        } catch (InvalidConfigurationException $e) {
            throw new UserException($e->getMessage(), 0, $e);
        }
    }
protected function loadConfig ( ) : void { $ configClass = $ this -> getConfigClass ( ) ; $ configDefinitionClass = $ this -> getConfigDefinitionClass ( ) ; try { $ this -> config = new $ configClass ( $ this -> getRawConfig ( ) , new $ configDefinitionClass ( ) ) ; } catch ( InvalidConfigurationException $ e ) { throw new UserException ( $ e -> getMessage ( ) , 0 , $ e ) ; } }
Automatically loads configuration from datadir, instantiates specified
config class and validates it with specified confing definition class
Automatically loads configuration from datadir instantiates specified config class and validates it with specified confing definition class