forked from Shahiem/Maintenance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlugin.php
51 lines (44 loc) · 1.27 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
48
49
50
51
<?php
/**
* Created by ShahiemSeymor.
* Date: 6/3/14
*/
namespace ShahiemSeymor\Maintenance;
use App;
use Backend;
use System\Classes\PluginBase;
use System\Classes\SettingsManager;
use Illuminate\Foundation\AliasLoader;
class Plugin extends PluginBase
{
public function pluginDetails()
{
return [
'name' => 'Maintenance',
'description' => 'Create a maintenance page and block all non-logged in users from accessing your site.',
'author' => 'ShahiemSeymor',
'icon' => 'icon-wrench'
];
}
public function registerReportWidgets()
{
return [
'ShahiemSeymor\Maintenance\ReportWidgets\Maintenance' => [
'label' => 'Maintenance information',
'context' => 'dashboard'
]
];
}
public function registerSettings()
{
return [
'settings' => [
'label' => 'Maintenance',
'description' => 'Manage maintenance settings.',
'category' => SettingsManager::CATEGORY_SYSTEM,
'class' => 'ShahiemSeymor\Maintenance\Models\Settings',
'icon' => 'icon-wrench'
]
];
}
}