- 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 环境验证通过
25 lines
692 B
JSON
25 lines
692 B
JSON
{
|
||
"name": "metazone/disable-email-notifications",
|
||
"description": "彻底禁用 Flarum 邮件通知——从驱动层移除 EmailNotificationDriver,保留站点通知不受影响。",
|
||
"type": "flarum-extension",
|
||
"license": "MIT",
|
||
"require": {
|
||
"flarum/core": "^1.0|^2.0"
|
||
},
|
||
"autoload": {
|
||
"psr-4": {
|
||
"MetaZone\\DisableEmailNotifications\\": "src/"
|
||
}
|
||
},
|
||
"extra": {
|
||
"flarum-extension": {
|
||
"title": "Disable Email Notifications",
|
||
"icon": {
|
||
"name": "fas fa-envelope",
|
||
"backgroundColor": "#e74c3c",
|
||
"color": "#fff"
|
||
}
|
||
}
|
||
}
|
||
}
|