0 關注者

介面 yii\web\ResponseFormatterInterface

實作於yii\web\HtmlResponseFormatter, yii\web\JsonResponseFormatter, yii\web\XmlResponseFormatter
自版本起可用2.0
原始碼 https://github.com/yiisoft/yii2/blob/master/framework/web/ResponseFormatterInterface.php

ResponseFormatterInterface 指定了在回應送出前,格式化回應所需的介面。

公用方法

隱藏繼承的方法

方法 描述 定義於
format() 格式化指定的響應。 yii\web\ResponseFormatterInterface

方法詳情

隱藏繼承的方法

format() public abstract method

格式化指定的響應。

public abstract void format ( $response )
$response yii\web\Response

要格式化的響應。

                public function format($response);