|
|
|
@ -998,9 +998,15 @@ class Response extends \yii\base\Response
|
|
|
|
|
protected function defaultFormatters() |
|
|
|
|
{ |
|
|
|
|
return [ |
|
|
|
|
self::FORMAT_HTML => 'yii\web\HtmlResponseFormatter', |
|
|
|
|
self::FORMAT_XML => 'yii\web\XmlResponseFormatter', |
|
|
|
|
self::FORMAT_JSON => 'yii\web\JsonResponseFormatter', |
|
|
|
|
self::FORMAT_HTML => [ |
|
|
|
|
'class' => 'yii\web\HtmlResponseFormatter', |
|
|
|
|
], |
|
|
|
|
self::FORMAT_XML => [ |
|
|
|
|
'class' => 'yii\web\XmlResponseFormatter', |
|
|
|
|
], |
|
|
|
|
self::FORMAT_JSON => [ |
|
|
|
|
'class' => 'yii\web\JsonResponseFormatter', |
|
|
|
|
], |
|
|
|
|
self::FORMAT_JSONP => [ |
|
|
|
|
'class' => 'yii\web\JsonResponseFormatter', |
|
|
|
|
'useJsonp' => true, |
|
|
|
|