feat: 兼容 Flarum 2.0

- composer.json 约束更新为 ^1.0|^2.0,同时支持 1.x 和 2.0
- RemoveEmailDriver 适配 2.0 ExtenderInterface nullable 类型签名
- 其余 API(Event、Registered、notification.drivers、User::setPreference)2.0 无变化,无需改动
- 已在 2.0 RC1 环境验证通过
This commit is contained in:
2026-05-29 14:18:55 +08:00
parent ad2ebab1cf
commit 5f942d1f6b
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
"type": "flarum-extension",
"license": "MIT",
"require": {
"flarum/core": "^1.0"
"flarum/core": "^1.0|^2.0"
},
"autoload": {
"psr-4": {