'Args:
hs (synapse.server.HomeServer): server'

def __init__(self, hs):

    super(RegisterRestServlet, self).__init__()
    self.hs = hs
    self.auth = hs.get_auth()
    self.store = hs.get_datastore()
    self.auth_handler = hs.get_auth_handler()
    self.registration_handler = hs.get_handlers().registration_handler
    self.identity_handler = hs.get_handlers().identity_handler
    self.device_handler = hs.get_device_handler()
    self.macaroon_gen = hs.get_macaroon_generator()
