|
12 | 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
13 | 13 | # See the License for the specific language governing permissions and
|
14 | 14 | # limitations under the License.
|
15 |
| - |
16 |
| -from .admin import AdminHandler |
17 |
| -from .directory import DirectoryHandler |
18 |
| -from .federation import FederationHandler |
19 |
| -from .identity import IdentityHandler |
20 |
| -from .search import SearchHandler |
21 |
| - |
22 |
| - |
23 |
| -class Handlers: |
24 |
| - |
25 |
| - """ Deprecated. A collection of handlers. |
26 |
| -
|
27 |
| - At some point most of the classes whose name ended "Handler" were |
28 |
| - accessed through this class. |
29 |
| -
|
30 |
| - However this makes it painful to unit test the handlers and to run cut |
31 |
| - down versions of synapse that only use specific handlers because using a |
32 |
| - single handler required creating all of the handlers. So some of the |
33 |
| - handlers have been lifted out of the Handlers object and are now accessed |
34 |
| - directly through the homeserver object itself. |
35 |
| -
|
36 |
| - Any new handlers should follow the new pattern of being accessed through |
37 |
| - the homeserver object and should not be added to the Handlers object. |
38 |
| -
|
39 |
| - The remaining handlers should be moved out of the handlers object. |
40 |
| - """ |
41 |
| - |
42 |
| - def __init__(self, hs): |
43 |
| - self.federation_handler = FederationHandler(hs) |
44 |
| - self.directory_handler = DirectoryHandler(hs) |
45 |
| - self.admin_handler = AdminHandler(hs) |
46 |
| - self.identity_handler = IdentityHandler(hs) |
47 |
| - self.search_handler = SearchHandler(hs) |
0 commit comments