lib/Registry/ConfigurableRegistry.php
public function getConfig($name)
    {
        if (is_array($name)) {
            $config = $name;
            $name = uniqid();
            $this->setConfig($name, $config);
        }

        $name = trim($name);
        $name = $this->processRawCliConfig($name);

        if (!isset($this->configs[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'No %s configuration named "%s" exists. Known configurations: "%s"',
                $this->serviceType,
                $name,
                implode('", "', array_keys($this->configs))
            ));
        }

        if (!isset($this->resolvedConfigs[$name])) {
            $this->resolveConfig($name);
        }

        return $this->resolvedConfigs[$name];
    }
public function getConfig($name)
    {
        if (is_array($name)) {
            $config = $name;
            $name = uniqid();
            $this->setConfig($name, $config);
        }

        $name = trim($name);
        $name = $this->processRawCliConfig($name);

        if (!isset($this->configs[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'No %s configuration named "%s" exists. Known configurations: "%s"',
                $this->serviceType,
                $name,
                implode('", "', array_keys($this->configs))
            ));
        }

        if (!isset($this->resolvedConfigs[$name])) {
            $this->resolveConfig($name);
        }

        return $this->resolvedConfigs[$name];
    }
public function getConfig ( $ name ) { if ( is_array ( $ name ) ) { $ config = $ name ; $ name = uniqid ( ) ; $ this -> setConfig ( $ name , $ config ) ; } $ name = trim ( $ name ) ; $ name = $ this -> processRawCliConfig ( $ name ) ; if ( ! isset ( $ this -> configs [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'No %s configuration named "%s" exists. Known configurations: "%s"' , $ this -> serviceType , $ name , implode ( '", "' , array_keys ( $ this -> configs ) ) ) ) ; } if ( ! isset ( $ this -> resolvedConfigs [ $ name ] ) ) { $ this -> resolveConfig ( $ name ) ; } return $ this -> resolvedConfigs [ $ name ] ; }
Return the named configuration.

@return Config
Return the named configuration .