Total Complexity | 3 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
20 | class OptionsAction extends \yii\base\Action |
||
21 | { |
||
22 | /** |
||
23 | * @var array the HTTP verbs that are supported by the collection URL |
||
24 | */ |
||
25 | public $collectionOptions = ['GET', 'POST', 'HEAD', 'OPTIONS']; |
||
26 | /** |
||
27 | * @var array the HTTP verbs that are supported by the resource URL |
||
28 | */ |
||
29 | public $resourceOptions = ['GET', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS']; |
||
30 | |||
31 | |||
32 | /** |
||
33 | * Responds to the OPTIONS request. |
||
34 | * @param string|null $id |
||
35 | */ |
||
36 | public function run($id = null) |
||
47 |