protected static function registerService($name, Doozr_Base_Service_Interface $service)
    {
        // Check how to store service in registry
        $uuid = (true === $service->isSingleton()) ?
            self::getRegistry()->set($service, $name) :
            self::getRegistry()->add($service, $name);

        return $uuid;
    }
protected static function registerService($name, Doozr_Base_Service_Interface $service)
    {
        // Check how to store service in registry
        $uuid = (true === $service->isSingleton()) ?
            self::getRegistry()->set($service, $name) :
            self::getRegistry()->add($service, $name);

        return $uuid;
    }
protected static function registerService ( $ name , Doozr_Base_Service_Interface $ service ) { // Check how to store service in registry $ uuid = ( true === $ service -> isSingleton ( ) ) ? self :: getRegistry ( ) -> set ( $ service , $ name ) : self :: getRegistry ( ) -> add ( $ service , $ name ) ; return $ uuid ; }
Registers a service in Doozr's registry.

@param string                       $name    The name of the service.
@param Doozr_Base_Service_Interface $service The service instance.

@author Benjamin Carl <opensource@clickalicious.de>

@return string Uuid handler generated by registry
Registers a service in Doozr s registry .