-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlugin.php
37 lines (33 loc) · 907 Bytes
/
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
<?php namespace Inetis\Revisionable;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
/**
* Returns information about this plugin.
*
* @return array
*/
public function pluginDetails()
{
return [
'name' => 'Revisionable',
'description' => 'Add revision history to backend',
'author' => 'inetis',
'icon' => 'icon-history',
];
}
public function register()
{
$this->registerConsoleCommand('revisionable.clear', Console\ClearEmptyRevisions::class);
}
/**
* @param \Illuminate\Console\Scheduling\Schedule $schedule
*
* @return void
* @see https://laravel.com/docs/5.5/scheduling#schedule-frequency-options
*/
public function registerSchedule($schedule)
{
$schedule->command(Console\ClearEmptyRevisions::class)->daily();
}
}