mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 07:32:48 +08:00
response_start位置更改为response_send
This commit is contained in:
@@ -89,12 +89,12 @@ class Response
|
|||||||
*/
|
*/
|
||||||
public function send()
|
public function send()
|
||||||
{
|
{
|
||||||
|
// 监听response_start
|
||||||
|
Hook::listen('response_send', $this);
|
||||||
|
|
||||||
// 处理输出数据
|
// 处理输出数据
|
||||||
$data = $this->getContent();
|
$data = $this->getContent();
|
||||||
|
|
||||||
// 监听response_start
|
|
||||||
Hook::listen('response_start', $this);
|
|
||||||
|
|
||||||
// Trace调试注入
|
// Trace调试注入
|
||||||
if (Env::get('app_trace', Config::get('app_trace'))) {
|
if (Env::get('app_trace', Config::get('app_trace'))) {
|
||||||
Debug::inject($this, $data);
|
Debug::inject($this, $data);
|
||||||
|
|||||||
@@ -1450,7 +1450,7 @@ class Route
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!empty($option['response'])) {
|
if (!empty($option['response'])) {
|
||||||
Hook::add('response_start', $option['response']);
|
Hook::add('response_send', $option['response']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 解析额外参数
|
// 解析额外参数
|
||||||
|
|||||||
Reference in New Issue
Block a user