public function set($name, $service, $shared = true)
    {
        return $this->setService($name, $service, $shared);
    }
public function set($name, $service, $shared = true)
    {
        return $this->setService($name, $service, $shared);
    }
public function set ( $ name , $ service , $ shared = true ) { return $ this -> setService ( $ name , $ service , $ shared ) ; }
Register a service with the locator.

This method is an alias to $this->setService().

@param string $name
@param mixed  $service
@param bool   $shared

@return ServiceManager
Register a service with the locator .