Interface yii\web\ResponseFormatterInterface
| 实现 | yii\web\HtmlResponseFormatter, yii\web\JsonResponseFormatter, yii\web\XmlResponseFormatter |
|---|---|
| 可用版本自 | 2.0 |
| 源码 | https://github.com/yiichina/yii2/blob/api/framework/web/ResponseFormatterInterface.php |
ResponseFormatterInterface specifies the interface needed to format a response before it is sent out.
方法详情
Formats the specified response.
| public abstract void format($response) | ||
| $response | yii\web\Response | The response to be formatted. |