Completed
Push — master ( 9ed240...526dfe )
by Razon
02:55
created

Controller::actions()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 9
rs 10
cc 1
nc 1
nop 0
1
<?php
2
namespace App\Http\Api\Backend\Controller;
3
4
use App\Http\Rest\Controller as BaseController;
5
use yii\rest\OptionsAction;
6
7
class Controller extends BaseController
8
{
9
    use ControllerTrait;
0 ignored issues
show
Bug introduced by
The trait App\Http\Api\Backend\Controller\ControllerTrait requires the property $params which is not provided by App\Http\Api\Backend\Controller\Controller.
Loading history...
10
11
    public function actions()
12
    {
13
        $acitons = parent::actions();
14
15
        $acitons['options'] = [
16
            'class' => OptionsAction::class,
17
        ];
18
19
        return $acitons;
20
    }
21
}
22