public function registerService($service, $name = '') {
        if (empty($name)) {
            $name = Assist::classNameShort($service);
        }

        static::$container->offsetSet(strtolower($name), $service);
    }
public function registerService($service, $name = '') {
        if (empty($name)) {
            $name = Assist::classNameShort($service);
        }

        static::$container->offsetSet(strtolower($name), $service);
    }
public function registerService ( $ service , $ name = '' ) { if ( empty ( $ name ) ) { $ name = Assist :: classNameShort ( $ service ) ; } static :: $ container -> offsetSet ( strtolower ( $ name ) , $ service ) ; }
Register a service

@param object $service
@param string $name
Register a service