public function setConfig($key, $value)
    {
        if (! is_object($value) || ! $value instanceof ConfigurableService) {
            $value = new ConfigurationService(array(ConfigurationService::OPTION_CONFIG => $value));
        }
        $value->setHeader($this->getConfigHeader($key));
        $this->registerService($this->getId().'/'.$key, $value);
        return true;
    }
public function setConfig($key, $value)
    {
        if (! is_object($value) || ! $value instanceof ConfigurableService) {
            $value = new ConfigurationService(array(ConfigurationService::OPTION_CONFIG => $value));
        }
        $value->setHeader($this->getConfigHeader($key));
        $this->registerService($this->getId().'/'.$key, $value);
        return true;
    }
public function setConfig ( $ key , $ value ) { if ( ! is_object ( $ value ) || ! $ value instanceof ConfigurableService ) { $ value = new ConfigurationService ( array ( ConfigurationService :: OPTION_CONFIG => $ value ) ) ; } $ value -> setHeader ( $ this -> getConfigHeader ( $ key ) ) ; $ this -> registerService ( $ this -> getId ( ) . '/' . $ key , $ value ) ; return true ; }
sets a configuration value

@param  string $key
@param  string $value
@return bool always returns true for backward compatibility
@throws common_exception_Error On error
sets a configuration value