-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPlugin.php
More file actions
28 lines (25 loc) · 766 Bytes
/
Plugin.php
File metadata and controls
28 lines (25 loc) · 766 Bytes
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
<?php namespace MG\EncryptEnv;
use MG\EncryptEnv\Traits\VendorFilesTrait;
use System\Classes\PluginBase;
class Plugin extends PluginBase
{
use VendorFilesTrait;
public function pluginDetails()
{
return [
'name' => 'mg.encryptenv::lang.plugin.name',
'description' => 'mg.encryptenv::lang.plugin.description',
'author' => 'Matthew Guillot',
'icon' => 'icon-lock'
];
}
public function boot()
{
//Check for required composer.json entries and for required files
$this->checkRequiredFiles();
}
public function register()
{
$this->registerConsoleCommand('encryptenv:encrypt', 'MG\EncryptEnv\Command\EncryptEnvValues');
}
}