diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-02-05 17:04:59 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-02-05 17:04:59 +0000 |
commit | 11e6b3d18b5ae95857e01884960a01b9ea4d307d (patch) | |
tree | 34b03e7fd032f8cb6514fc2c014d4582b9ebd9d4 /synapse/handlers/appservice.py | |
parent | Add delta sql file. (diff) | |
download | synapse-11e6b3d18b5ae95857e01884960a01b9ea4d307d.tar.xz |
Dependency inject ApplicationServiceApi when creating ApplicationServicesHandler.
Diffstat (limited to 'synapse/handlers/appservice.py')
-rw-r--r-- | synapse/handlers/appservice.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py index 8d0cdd528c..fa810b9a98 100644 --- a/synapse/handlers/appservice.py +++ b/synapse/handlers/appservice.py @@ -18,7 +18,6 @@ from twisted.internet import defer from synapse.api.constants import EventTypes from synapse.api.errors import Codes, StoreError, SynapseError from synapse.appservice import ApplicationService -from synapse.appservice.api import ApplicationServiceApi from synapse.types import UserID import synapse.util.stringutils as stringutils @@ -32,10 +31,10 @@ logger = logging.getLogger(__name__) # easier. class ApplicationServicesHandler(object): - def __init__(self, hs): + def __init__(self, hs, appservice_api): self.store = hs.get_datastore() self.hs = hs - self.appservice_api = ApplicationServiceApi(hs) + self.appservice_api = appservice_api @defer.inlineCallbacks def register(self, app_service): |