mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-11 01:23:38 -05:00
Dependency inject ApplicationServiceApi when creating ApplicationServicesHandler.
This commit is contained in:
parent
a3c6010718
commit
11e6b3d18b
3 changed files with 9 additions and 11 deletions
|
|
@ -13,6 +13,7 @@
|
|||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
from synapse.appservice.api import ApplicationServiceApi
|
||||
from .register import RegistrationHandler
|
||||
from .room import (
|
||||
RoomCreationHandler, RoomMemberHandler, RoomListHandler
|
||||
|
|
@ -53,5 +54,7 @@ class Handlers(object):
|
|||
self.directory_handler = DirectoryHandler(hs)
|
||||
self.typing_notification_handler = TypingNotificationHandler(hs)
|
||||
self.admin_handler = AdminHandler(hs)
|
||||
self.appservice_handler = ApplicationServicesHandler(hs)
|
||||
self.appservice_handler = ApplicationServicesHandler(
|
||||
hs, ApplicationServiceApi(hs)
|
||||
)
|
||||
self.sync_handler = SyncHandler(hs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue