| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 43 | public function behaviors() |
||
| 44 | { |
||
| 45 | return ArrayHelper::merge( |
||
| 46 | parent::behaviors(), |
||
| 47 | [ |
||
| 48 | 'verbFilter' => [ |
||
| 49 | 'class' => VerbFilter::class, |
||
| 50 | 'actions' => $this->verbs(), |
||
| 51 | ], |
||
| 52 | 'contentNegotiator' => [ |
||
| 53 | 'class' => ContentNegotiator::class, |
||
| 54 | 'formats' => [ |
||
| 55 | 'application/json' => Response::FORMAT_JSON, |
||
| 56 | 'application/xml' => Response::FORMAT_XML, |
||
| 57 | 'text/html' => Response::FORMAT_RAW |
||
| 58 | ] |
||
| 59 | ] |
||
| 60 | ] |
||
| 61 | ); |
||
| 62 | } |
||
| 63 | |||
| 72 |