Module::init()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace andmemasin\emailsvalidator;
4
5
use Yii;
6
7
8
class Module extends \yii\base\Module
9
{
10
    /** @var string  */
11
    public $accessPermissionName = 'access::emailsValidator';
12
13
    public $controllerNamespace = 'andmemasin\emailsvalidator\controllers';
14
15
    public $defaultRoute = 'site/index';
16
17
    /** @var int $maxInputKB Limit the input string to KB (default = 128) */
18
    public $maxInputKB = 128;
19
20
    /** @var boolean $displayFlashMessages whether the flash messages will be rendered ny the module. You can disable this if your app has a separate flash displaying system.  */
21
    public $displayFlashMessages = true;
22
23
    /**
24
     * {@inheritdoc}
25
     */
26
    public function init()
27
    {
28
        parent::init();
29
30
        if (Yii::$app instanceof \yii\console\Application) {
31
            $this->controllerNamespace = 'andmemasin\emailsvalidator\commands';
32
        }
33
    }
34
35
36
37
}
38