Creates a new plugin instance. This is the first step of the plugin initialization.
See also ~PluginInterface#init and ~PluginInterface#afterInit.
The plugin static properties should conform to ~PluginStaticMembers PluginStaticMembers interface.
A plugin is always instantiated after its ~PluginStaticMembers#requires dependencies and the
~PluginInterface#init and ~PluginInterface#afterInit methods are called in the same order.
Usually, you will want to put your plugin's initialization code in the ~PluginInterface#init method.
The constructor can be understood as "before init" and used in special cases, just like
~PluginInterface#afterInit serves the special "after init" scenarios (e.g.the code which depends on other
plugins, but which does not ~PluginStaticMembers#requires explicitly require them).
Creates a new plugin instance. This is the first step of the plugin initialization. See also ~PluginInterface#init and ~PluginInterface#afterInit.
The plugin static properties should conform to ~PluginStaticMembers
PluginStaticMembersinterface.A plugin is always instantiated after its ~PluginStaticMembers#requires dependencies and the ~PluginInterface#init and ~PluginInterface#afterInit methods are called in the same order.
Usually, you will want to put your plugin's initialization code in the ~PluginInterface#init method. The constructor can be understood as "before init" and used in special cases, just like ~PluginInterface#afterInit serves the special "after init" scenarios (e.g.the code which depends on other plugins, but which does not ~PluginStaticMembers#requires explicitly require them).