public function register($serviceKey, ConfigurableService $service)
    {
        $parts = explode('/', $serviceKey, 2);
        if (count($parts) < 2) {
            throw new \common_Exception('Invalid servicekey '.$serviceKey);
        }
        $this->propagate($service);
        $this->services[$serviceKey] = $service;
        $success = $this->getConfig()->set($serviceKey, $service);
        if (!$success) {
            throw new \common_exception_Error('Unable to write '.$serviceKey);
        }
    }
public function register($serviceKey, ConfigurableService $service)
    {
        $parts = explode('/', $serviceKey, 2);
        if (count($parts) < 2) {
            throw new \common_Exception('Invalid servicekey '.$serviceKey);
        }
        $this->propagate($service);
        $this->services[$serviceKey] = $service;
        $success = $this->getConfig()->set($serviceKey, $service);
        if (!$success) {
            throw new \common_exception_Error('Unable to write '.$serviceKey);
        }
    }
public function register ( $ serviceKey , ConfigurableService $ service ) { $ parts = explode ( '/' , $ serviceKey , 2 ) ; if ( count ( $ parts ) < 2 ) { throw new \ common_Exception ( 'Invalid servicekey ' . $ serviceKey ) ; } $ this -> propagate ( $ service ) ; $ this -> services [ $ serviceKey ] = $ service ; $ success = $ this -> getConfig ( ) -> set ( $ serviceKey , $ service ) ; if ( ! $ success ) { throw new \ common_exception_Error ( 'Unable to write ' . $ serviceKey ) ; } }
Registers a service, overwritting a potentially already
existing service.
3
@param string $serviceKey
@param ConfigurableService $service
@throws \common_Exception
Registers a service overwritting a potentially already existing service . 3