-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
39 lines (36 loc) · 1.15 KB
/
Copy pathconfig.php
File metadata and controls
39 lines (36 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
declare(strict_types=1);
use TuraIDC\Plugins\Addons\MyPlugin\MyPluginPlugin;
return [
'info' => [
'domain' => 'addons',
'slug' => 'my_plugin',
'key' => 'my_plugin',
'name' => 'My Plugin',
'version' => '1.0.0',
'entry' => MyPluginPlugin::class,
'capabilities' => [
// 运行期能力声明,取值与语义见插件包规范。
// 留空数组表示暂不暴露能力。
],
'extra' => [
// 可选:心跳定时任务 / 钩子 / 管理端入口等。
// 'scheduled_tasks' => [
// MyPluginScheduledTask::class,
// ],
],
],
'config' => [
// 插件配置项定义:管理端插件详情页据此渲染配置表单。
// 支持 text / textarea / password / switch / select / divider / notice 等类型。
// 示例:
// 'api_key' => [
// 'title' => 'API Key',
// 'type' => 'password',
// 'value' => '',
// 'required' => true,
// 'secret' => true,
// 'placeholder' => 'sk-...',
// ],
],
];