yii\web\ResponseFormatterInterface - Yii2 类参考手册
Interface yii\web\ResponseFormatterInterface
全部
| 方法 Methods
Implemented by | yii\web\HtmlResponseFormatter, yii\web\JsonResponseFormatter, yii\web\XmlResponseFormatter |
---|---|
Available since version | 2.0 |
ResponseFormatterInterface specifies the interface needed to format a response before it is sent out.
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
format() | Formats the specified response. | yii\web\ResponseFormatterInterface |
方法详情 Method Details
Formats the specified response.
public abstract void format ( $response ) | ||
$response | yii\web\Response | The response to be formatted. |