From 3d2b59e9b7faaad05e957b89c25a1d3c576bafe6 Mon Sep 17 00:00:00 2001 From: squahtx Date: Tue, 4 Oct 2022 10:07:21 +0000 Subject: deploy: 1613857b90663aad042de39632f6db90b6f7f6f7 --- v1.69.0/modules/porting_legacy_module.html | 206 +++++++++++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 v1.69.0/modules/porting_legacy_module.html (limited to 'v1.69.0/modules/porting_legacy_module.html') diff --git a/v1.69.0/modules/porting_legacy_module.html b/v1.69.0/modules/porting_legacy_module.html new file mode 100644 index 0000000000..b58f3f33aa --- /dev/null +++ b/v1.69.0/modules/porting_legacy_module.html @@ -0,0 +1,206 @@ + + + + + + Porting a legacy module to the new interface - Synapse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ +
+ +

Porting an existing module that uses the old interface

+

In order to port a module that uses Synapse's old module interface, its author needs to:

+
    +
  • ensure the module's callbacks are all asynchronous.
  • +
  • register their callbacks using one or more of the register_[...]_callbacks methods +from the ModuleApi class in the module's __init__ method (see this section +for more info).
  • +
+

Additionally, if the module is packaged with an additional web resource, the module +should register this resource in its __init__ method using the register_web_resource +method from the ModuleApi class (see this section for +more info).

+

There is no longer a get_db_schema_files callback provided for password auth provider modules. Any +changes to the database should now be made by the module using the module API class.

+

The module's author should also update any example in the module's configuration to only +use the new modules section in Synapse's configuration file (see this section +for more info).

+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + \ No newline at end of file -- cgit 1.5.1