Skip to main content

Class: PluginManager

Constructors

new PluginManager()

new PluginManager(): PluginManager

Returns

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)

registerHook(hook: SapphirePluginHook, type: SyncPluginHooks, name?: string): this

Parameters
ParameterType
hookSapphirePluginHook
typeSyncPluginHooks
name?string
Returns

this

Defined in

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

registerHook(hook, type, name)

registerHook(hook: SapphirePluginAsyncHook, type: AsyncPluginHooks, name?: string): this

Parameters
ParameterType
hookSapphirePluginAsyncHook
typeAsyncPluginHooks
name?string
Returns

this

Defined in

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


registerPostInitializationHook()

registerPostInitializationHook(hook: SapphirePluginHook, name?: string): PluginManager

Parameters

ParameterType
hookSapphirePluginHook
name?string

Returns

PluginManager

Defined in

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


registerPostLoginHook()

registerPostLoginHook(hook: SapphirePluginAsyncHook, name?: string): PluginManager

Parameters

ParameterType
hookSapphirePluginAsyncHook
name?string

Returns

PluginManager

Defined in

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


registerPreGenericsInitializationHook()

registerPreGenericsInitializationHook(hook: SapphirePluginHook, name?: string): PluginManager

Parameters

ParameterType
hookSapphirePluginHook
name?string

Returns

PluginManager

Defined in

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


registerPreInitializationHook()

registerPreInitializationHook(hook: SapphirePluginHook, name?: string): PluginManager

Parameters

ParameterType
hookSapphirePluginHook
name?string

Returns

PluginManager

Defined in

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


registerPreLoginHook()

registerPreLoginHook(hook: SapphirePluginAsyncHook, name?: string): PluginManager

Parameters

ParameterType
hookSapphirePluginAsyncHook
name?string

Returns

PluginManager

Defined in

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


use()

use(plugin: typeof Plugin): PluginManager

Parameters

ParameterType
plugintypeof Plugin

Returns

PluginManager

Defined in

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


values()

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)

values(hook: SyncPluginHooks): Generator<SapphirePluginHookEntry<SapphirePluginHook>, void, unknown>

Parameters
ParameterType
hookSyncPluginHooks
Returns

Generator<SapphirePluginHookEntry<SapphirePluginHook>, void, unknown>

Defined in

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

values(hook)

values(hook: AsyncPluginHooks): Generator<SapphirePluginHookEntry<SapphirePluginAsyncHook>, void, unknown>

Parameters
ParameterType
hookAsyncPluginHooks
Returns

Generator<SapphirePluginHookEntry<SapphirePluginAsyncHook>, void, unknown>

Defined in

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