Class: PluginManager
Constructors
new PluginManager()
new PluginManager():
PluginManager
Returns
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
Parameter | Type |
---|---|
hook | SapphirePluginHook |
type | SyncPluginHooks |
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
Parameter | Type |
---|---|
hook | SapphirePluginAsyncHook |
type | AsyncPluginHooks |
name ? | string |
Returns
this
Defined in
projects/framework/src/lib/plugins/PluginManager.ts:28
registerPostInitializationHook()
registerPostInitializationHook(
hook
:SapphirePluginHook
,name
?:string
):PluginManager
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginHook |
name ? | string |
Returns
Defined in
projects/framework/src/lib/plugins/PluginManager.ts:43
registerPostLoginHook()
registerPostLoginHook(
hook
:SapphirePluginAsyncHook
,name
?:string
):PluginManager
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginAsyncHook |
name ? | string |
Returns
Defined in
projects/framework/src/lib/plugins/PluginManager.ts:51
registerPreGenericsInitializationHook()
registerPreGenericsInitializationHook(
hook
:SapphirePluginHook
,name
?:string
):PluginManager
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginHook |
name ? | string |
Returns
Defined in
projects/framework/src/lib/plugins/PluginManager.ts:35
registerPreInitializationHook()
registerPreInitializationHook(
hook
:SapphirePluginHook
,name
?:string
):PluginManager
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginHook |
name ? | string |
Returns
Defined in
projects/framework/src/lib/plugins/PluginManager.ts:39
registerPreLoginHook()
registerPreLoginHook(
hook
:SapphirePluginAsyncHook
,name
?:string
):PluginManager
Parameters
Parameter | Type |
---|---|
hook | SapphirePluginAsyncHook |
name ? | string |
Returns
Defined in
projects/framework/src/lib/plugins/PluginManager.ts:47
use()
use(
plugin
: typeofPlugin
):PluginManager
Parameters
Parameter | Type |
---|---|
plugin | typeof Plugin |
Returns
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
Parameter | Type |
---|---|
hook | SyncPluginHooks |
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
Parameter | Type |
---|---|
hook | AsyncPluginHooks |
Returns
Generator
<SapphirePluginHookEntry
<SapphirePluginAsyncHook
>, void
, unknown
>