modify
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
|
||||
namespace Server;
|
||||
|
||||
|
||||
use HttpServer\Http\Context;
|
||||
|
||||
|
||||
/**
|
||||
* Class Response
|
||||
* @package Server
|
||||
* @mixin \HttpServer\Http\Response
|
||||
*/
|
||||
class Response
|
||||
{
|
||||
|
||||
const JSON = 'json';
|
||||
const XML = 'xml';
|
||||
const HTML = 'html';
|
||||
|
||||
/**
|
||||
* @param $name
|
||||
* @param $args
|
||||
* @return mixed
|
||||
*/
|
||||
public function __call($name, $args)
|
||||
{
|
||||
return Context::getContext(\HttpServer\Http\Response::class)->{$name}(...$args);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user