Plugin::registerComponents()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php namespace VojtaSvoboda\CodeLogin;
2
3
use System\Classes\PluginBase;
4
5
/**
6
 * CodeLogin Plugin Information File
7
 */
8
class Plugin extends PluginBase
9
{
10
    /**
11
     * @var array Plugin dependencies
12
     */
13
    public $require = ['RainLab.User'];
14
15
    /**
16
     * Returns information about this plugin.
17
     *
18
     * @return array
19
     */
20
    public function pluginDetails()
21
    {
22
        return [
23
            'name'        => 'vojtasvoboda.codelogin::lang.plugin.name',
24
            'description' => 'vojtasvoboda.codelogin::lang.plugin.description',
25
            'author'      => 'Vojta Svoboda',
26
            'icon'        => 'icon-user',
27
            'homepage'    => 'https://github.com/vojtasvoboda/oc-codelogin-plugin',
28
        ];
29
    }
30
31
    public function registerComponents()
32
    {
33
        return [
34
            'VojtaSvoboda\CodeLogin\Components\CodeLogin' => 'codeLogin',
35
        ];
36
    }
37
}
38