Class: PluginManager
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:24
Constructors
new PluginManager()
new PluginManager():
PluginManager
Returns
Properties
registry
readonly
registry:Set
<SapphirePluginHookEntry
>
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:25
Methods
registerHook()
Call Signature
registerHook(
hook
:SapphirePluginHook
,type
:SyncPluginHooks
,name
?:string
):this
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:27
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginHook |
type | SyncPluginHooks |
name ? | string |
Returns
this
Call Signature
registerHook(
hook
:SapphirePluginAsyncHook
,type
:AsyncPluginHooks
,name
?:string
):this
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:28
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginAsyncHook |
type | AsyncPluginHooks |
name ? | string |
Returns
this
registerPostInitializationHook()
registerPostInitializationHook(
hook
:SapphirePluginHook
,name
?:string
):PluginManager
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:43
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginHook |
name ? | string |
Returns
registerPostLoginHook()
registerPostLoginHook(
hook
:SapphirePluginAsyncHook
,name
?:string
):PluginManager
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:51
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginAsyncHook |
name ? | string |
Returns
registerPreGenericsInitializationHook()
registerPreGenericsInitializationHook(
hook
:SapphirePluginHook
,name
?:string
):PluginManager
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:35
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginHook |
name ? | string |
Returns
registerPreInitializationHook()
registerPreInitializationHook(
hook
:SapphirePluginHook
,name
?:string
):PluginManager
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:39
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginHook |
name ? | string |
Returns
registerPreLoginHook()
registerPreLoginHook(
hook
:SapphirePluginAsyncHook
,name
?:string
):PluginManager
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:47
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginAsyncHook |
name ? | string |
Returns
use()
use(
plugin
: typeofPlugin
):PluginManager
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:55
Parameters
Parameter | Type |
---|---|
plugin | typeof Plugin |
Returns
values()
Call Signature
values():
Generator
<SapphirePluginHookEntry
,void
>
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:71
Returns
Generator
<SapphirePluginHookEntry
, void
>
Call Signature
values(
hook
:SyncPluginHooks
):Generator
<SapphirePluginHookEntry
<SapphirePluginHook
>,void
>
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:72
Parameters
Parameter | Type |
---|---|
hook | SyncPluginHooks |
Returns
Generator
<SapphirePluginHookEntry
<SapphirePluginHook
>, void
>
Call Signature
values(
hook
:AsyncPluginHooks
):Generator
<SapphirePluginHookEntry
<SapphirePluginAsyncHook
>,void
>
Defined in: projects/framework/src/lib/plugins/PluginManager.ts:73
Parameters
Parameter | Type |
---|---|
hook | AsyncPluginHooks |
Returns
Generator
<SapphirePluginHookEntry
<SapphirePluginAsyncHook
>, void
>