src/Application.php
public function getConfig(string $driver = 'default'): IDataStore
    {
        if (!isset($this->config[$driver])) {
            if ($driver === 'default') {
                if (!isset($this->implicit['config'])) {
                    throw new \RuntimeException('The default config storage was not set');
                }
                $this->config[$driver] = $this->implicit['config'];
            } else {
                $this->config[$driver] = $this->getCollector()->getConfigDriver($driver);
            }
        }

        return $this->config[$driver];
    }
public function getConfig(string $driver = 'default'): IDataStore
    {
        if (!isset($this->config[$driver])) {
            if ($driver === 'default') {
                if (!isset($this->implicit['config'])) {
                    throw new \RuntimeException('The default config storage was not set');
                }
                $this->config[$driver] = $this->implicit['config'];
            } else {
                $this->config[$driver] = $this->getCollector()->getConfigDriver($driver);
            }
        }

        return $this->config[$driver];
    }
public function getConfig ( string $ driver = 'default' ) : IDataStore { if ( ! isset ( $ this -> config [ $ driver ] ) ) { if ( $ driver === 'default' ) { if ( ! isset ( $ this -> implicit [ 'config' ] ) ) { throw new \ RuntimeException ( 'The default config storage was not set' ) ; } $ this -> config [ $ driver ] = $ this -> implicit [ 'config' ] ; } else { $ this -> config [ $ driver ] = $ this -> getCollector ( ) -> getConfigDriver ( $ driver ) ; } } return $ this -> config [ $ driver ] ; }
Returns a config storage

@param   string $driver (optional) Driver's name

@return  IDataStore
Returns a config storage