symphony.bdk.core.extension.ExtensionService#

class symphony.bdk.core.extension.ExtensionService(api_client_factory, bot_session, config)#

Bases: object

Service class for managing extensions

__init__(api_client_factory, bot_session, config)#

Methods

__init__(api_client_factory, bot_session, config)

register(extension_type_or_instance)

Registers and instantiates an extension.

service(extension_type)

Retrieves an extension service instance

register(extension_type_or_instance: Union[type, object])#

Registers and instantiates an extension.

Parameters

extension_type_or_instance – Type of the extension or extension instance

Raise

ValueError if the extension is already registered

Returns

None

service(extension_type: type)#

Retrieves an extension service instance

Parameters

extension_type – Type of the extension

Raise

ValueError if the extension does not implement a get_service method

Returns

the service instance