Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
7e554aac
Commit
7e554aac
authored
8 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Update docstring on Handlers.
To indicate it is deprecated.
parent
93efcb85
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/handlers/__init__.py
+15
-3
15 additions, 3 deletions
synapse/handlers/__init__.py
with
15 additions
and
3 deletions
synapse/handlers/__init__.py
+
15
−
3
View file @
7e554aac
...
...
@@ -31,10 +31,22 @@ from .search import SearchHandler
class
Handlers
(
object
):
"""
A collection of all the event handlers.
"""
Deprecated.
At some point most of the classes whose name ended
"
Handler
"
were
accessed through this class.
However this makes it painful to unit test the handlers and to run cut
down versions of synapse that only use specific handlers because using a
single handler required creating all of the handlers. So some of the
handlers have been lifted out of the Handlers object and are now accessed
directly through the homeserver object itself.
Any new handlers should follow the new pattern of being accessed through
the homeserver object and should not be added to the Handlers object.
There
'
s no need to lazily create these; we
'
ll just make them all eagerly
at construction time.
The remaining handlers should be moved out of the handlers object.
"""
def
__init__
(
self
,
hs
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment