changelog: mention PluginLoadOrder changes (#4458)

[ci skip]
This commit is contained in:
Mini S 2021-09-16 01:18:53 +09:00 committed by GitHub
parent a1c82da2f2
commit 59f3622f69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -897,6 +897,9 @@ However, if we add `src-namespace-prefix: pmmp\TesterPlugin` to the `plugin.yml`
- `PluginManager->registerEvent()` now has a simpler signature: `registerEvent(string $event, \Closure $handler, int $priority, Plugin $plugin, bool $handleCancelled = false)`. The provided closure must accept the specified event class as its only parameter. See [Event API changes](#event) for more details.
- The following classes have been removed:
- `PluginLogger`
- The following constants have been removed:
- `PluginLoadOrder::STARTUP` - use `PluginEnableOrder::STARTUP()`
- `PluginLoadOrder::POSTWORLD` - use `PluginEnableOrder::POSTWORLD()`
- The following interface requirements have been removed:
- `Plugin->onEnable()`: this is now internalized inside `PluginBase`
- `Plugin->onDisable()`: same as above