-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlugin.php
47 lines (41 loc) · 1.18 KB
/
Plugin.php
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
40
41
42
43
44
45
46
47
<?php
declare(strict_types=1);
namespace Vdlp\SecurityTxt;
use System\Classes\PluginBase;
use Vdlp\SecurityTxt\Models;
final class Plugin extends PluginBase
{
public function pluginDetails(): array
{
return [
'name' => 'security-txt',
'description' => 'Define security policies for your October CMS website.',
'author' => 'Van der Let & Partners',
'icon' => 'icon-file-text-o',
];
}
public function registerPermissions(): array
{
return [
'vdlp.securitytxt.access_settings' => [
'label' => 'Manage security.txt settings',
'tab' => 'SecurityTxt',
],
];
}
public function registerSettings(): array
{
return [
'config' => [
'label' => 'Security.txt',
'description' => 'Manage contents of the security.txt file.',
'icon' => 'icon-file-text-o',
'class' => Models\Settings::class,
'order' => 600,
'permissions' => [
'vdlp.securitytxt.access_settings',
],
],
];
}
}