diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-04 15:50:01 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-04 15:50:01 +0000 |
commit | c31dba86ec40853f27c70ae13409ca3332052cc1 (patch) | |
tree | ab5a11519590c3c8e2211aedd2b441a7ccc759d5 /synapse/server.py | |
parent | Begin converting things to use the new Event structure (diff) | |
download | synapse-c31dba86ec40853f27c70ae13409ca3332052cc1.tar.xz |
Convert rest and handlers to use new event structure
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index c3b54221d6..8bc27bbc3c 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -36,6 +36,7 @@ from synapse.util.lockutils import LockManager from synapse.streams.events import EventSources from synapse.api.ratelimiting import Ratelimiter from synapse.crypto.keyring import Keyring +from synapse.events.builder import EventBuilderFactory class BaseHomeServer(object): @@ -82,6 +83,7 @@ class BaseHomeServer(object): 'ratelimiter', 'keyring', 'event_validator', + 'event_builder_factory', ] def __init__(self, hostname, **kwargs): @@ -231,6 +233,12 @@ class HomeServer(BaseHomeServer): def build_event_validator(self): return EventValidator(self) + def build_event_builder_factory(self): + return EventBuilderFactory( + clock=self.get_clock(), + hostname=self.hostname, + ) + def register_servlets(self): """ Register all servlets associated with this HomeServer. """ |