改名
This commit is contained in:
+13
-13
@@ -11,23 +11,23 @@ use HttpServer\Http\Response as HttpResponse;
|
|||||||
/**
|
/**
|
||||||
* Class Response
|
* Class Response
|
||||||
* @package Server
|
* @package Server
|
||||||
* @mixin \HttpServer\Http\Response
|
* @mixin HttpResponse
|
||||||
*/
|
*/
|
||||||
class Response
|
class Response
|
||||||
{
|
{
|
||||||
|
|
||||||
const JSON = 'json';
|
const JSON = 'json';
|
||||||
const XML = 'xml';
|
const XML = 'xml';
|
||||||
const HTML = 'html';
|
const HTML = 'html';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param $name
|
* @param $name
|
||||||
* @param $args
|
* @param $args
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function __call($name, $args)
|
public function __call($name, $args)
|
||||||
{
|
{
|
||||||
return Context::getContext(HttpResponse::class)->{$name}(...$args);
|
return Context::getContext(HttpResponse::class)->{$name}(...$args);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user