This commit is contained in:
2023-04-16 03:11:12 +08:00
parent c9145dcec6
commit 54d472f9da
2 changed files with 10 additions and 10 deletions
+10
View File
@@ -86,4 +86,14 @@ class ConstrictResponse extends Message implements ResponseInterface
// TODO: Implement getReasonPhrase() method. // TODO: Implement getReasonPhrase() method.
return $this->reasonPhrase; return $this->reasonPhrase;
} }
/**
* @param object $response
* @return void
*/
public function write(object $response): void
{
$response->end($this->getBody()->getContents());
}
} }
-10
View File
@@ -316,14 +316,4 @@ class Response implements ResponseInterface
// TODO: Implement getReasonPhrase() method. // TODO: Implement getReasonPhrase() method.
return $this->__call__(__FUNCTION__); return $this->__call__(__FUNCTION__);
} }
/**
* @param object $response
* @return void
*/
public function write(object $response): void
{
$response->end($this->getBody()->getContents());
}
} }