Skip to main content

Class: PluginManager

Constructors

constructor

โ€ข new PluginManager()

Properties

registry

โ€ข Readonly registry: Set<SapphirePluginHookEntry<SapphirePluginAsyncHook | SapphirePluginHook>>

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:25

Methods

registerHook

โ–ธ registerHook(hook, type, name?): PluginManager

Parameters

NameType
hookSapphirePluginHook
typeSyncPluginHooks
name?string

Returns

PluginManager

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:27

โ–ธ registerHook(hook, type, name?): PluginManager

Parameters

NameType
hookSapphirePluginAsyncHook
typeAsyncPluginHooks
name?string

Returns

PluginManager

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:28


registerPostInitializationHook

โ–ธ registerPostInitializationHook(hook, name?): PluginManager

Parameters

NameType
hookSapphirePluginHook
name?string

Returns

PluginManager

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:43


registerPostLoginHook

โ–ธ registerPostLoginHook(hook, name?): PluginManager

Parameters

NameType
hookSapphirePluginAsyncHook
name?string

Returns

PluginManager

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:51


registerPreGenericsInitializationHook

โ–ธ registerPreGenericsInitializationHook(hook, name?): PluginManager

Parameters

NameType
hookSapphirePluginHook
name?string

Returns

PluginManager

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:35


registerPreInitializationHook

โ–ธ registerPreInitializationHook(hook, name?): PluginManager

Parameters

NameType
hookSapphirePluginHook
name?string

Returns

PluginManager

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:39


registerPreLoginHook

โ–ธ registerPreLoginHook(hook, name?): PluginManager

Parameters

NameType
hookSapphirePluginAsyncHook
name?string

Returns

PluginManager

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:47


use

โ–ธ use(plugin): PluginManager

Parameters

NameType
plugintypeof Plugin

Returns

PluginManager

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:55


values

โ–ธ values(): Generator<SapphirePluginHookEntry<SapphirePluginAsyncHook | SapphirePluginHook>, void, unknown>

Returns

Generator<SapphirePluginHookEntry<SapphirePluginAsyncHook | SapphirePluginHook>, void, unknown>

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:71

โ–ธ values(hook): Generator<SapphirePluginHookEntry<SapphirePluginHook>, void, unknown>

Parameters

NameType
hookSyncPluginHooks

Returns

Generator<SapphirePluginHookEntry<SapphirePluginHook>, void, unknown>

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:72

โ–ธ values(hook): Generator<SapphirePluginHookEntry<SapphirePluginAsyncHook>, void, unknown>

Parameters

NameType
hookAsyncPluginHooks

Returns

Generator<SapphirePluginHookEntry<SapphirePluginAsyncHook>, void, unknown>

Defined in

projects/framework/src/lib/plugins/PluginManager.ts:73