From 59f3622f69e10738fc72571d430cc46aff38a377 Mon Sep 17 00:00:00 2001 From: Mini S <60860894+minijaham@users.noreply.github.com> Date: Thu, 16 Sep 2021 01:18:53 +0900 Subject: [PATCH] changelog: mention PluginLoadOrder changes (#4458) [ci skip] --- changelogs/4.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/changelogs/4.0.md b/changelogs/4.0.md index bbf2937da..59f2151db 100644 --- a/changelogs/4.0.md +++ b/changelogs/4.0.md @@ -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