lib/Registry/ConfigurableRegistry.php
public function setConfig($name, array $config)
    {
        if (isset($this->configs[$name])) {
            throw new \InvalidArgumentException(sprintf(
                '%s config "%s" already exists.',
                $this->serviceType,
                $name
            ));
        }

        $this->configs[$name] = $config;
    }
public function setConfig($name, array $config)
    {
        if (isset($this->configs[$name])) {
            throw new \InvalidArgumentException(sprintf(
                '%s config "%s" already exists.',
                $this->serviceType,
                $name
            ));
        }

        $this->configs[$name] = $config;
    }
public function setConfig ( $ name , array $ config ) { if ( isset ( $ this -> configs [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( '%s config "%s" already exists.' , $ this -> serviceType , $ name ) ) ; } $ this -> configs [ $ name ] = $ config ; }
Set a named configuration.

Note that all configurations must be associated with a named service
via a configuration key equal to the configuration service type of this registry.

@param string $name
@param array $config
Set a named configuration .