Completed
Push — master ( 89be15...80fd60 )
by Igor
11:15
created

Module::behaviors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace app\modules\profile;
4
5
class Module extends \yii\base\Module
6
{
7
    /**
8
     * @inheritdoc
9
     */
10
    public function behaviors()
11
    {
12
        return [
13
            'access' => [
14
                'class' => 'yii\filters\AccessControl',
15
                'rules' => [
16
                    [
17
                        'allow' => true,
18
                        'roles' => ['@'],
19
                    ],
20
                ],
21
            ],
22
        ];
23
    }
24
}
25