Passed
Pull Request — master (#42)
by Paweł
03:47
created

ActiveController::behaviors()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
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
}