Passed
Pull Request — master (#46)
by Paweł
02:52
created

ActiveController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A behaviors() 0 4 1
1
<?php
2
/**
3
 * Created for IG Monitoring.
4
 * User: jakim <[email protected]>
5
 * Date: 06.05.2018
6
 */
7
8
namespace app\modules\api\v1\components;
9
10
11
use yii\filters\auth\HttpBearerAuth;
12
use yii\helpers\ArrayHelper;
13
14
class ActiveController extends \yii\rest\ActiveController
15
{
16
    public function behaviors()
17
    {
18
        return ArrayHelper::merge(parent::behaviors(), [
19
            'auth' => HttpBearerAuth::class,
20
        ]);
21
    }
22
}