|
|
@ -771,7 +771,7 @@ class Response extends \yii\base\Response |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
case self::FORMAT_XML: |
|
|
|
case self::FORMAT_XML: |
|
|
|
$this->content = Yii::createObject(XmlResponseFormatter::className())->format($this); |
|
|
|
Yii::createObject(XmlResponseFormatter::className())->format($this); |
|
|
|
break; |
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
throw new InvalidConfigException("Unsupported response format: {$this->format}"); |
|
|
|
throw new InvalidConfigException("Unsupported response format: {$this->format}"); |
|
|
|