改名
This commit is contained in:
@@ -11,8 +11,8 @@ namespace HttpServer\Http\Formatter;
|
||||
|
||||
|
||||
use Exception;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use Snowflake\Core\Json;
|
||||
use HttpServer\Application;
|
||||
use Swoole\Http\Response;
|
||||
use HttpServer\IInterface\IFormatter;
|
||||
|
||||
@@ -20,7 +20,7 @@ use HttpServer\IInterface\IFormatter;
|
||||
* Class HtmlFormatter
|
||||
* @package Snowflake\Snowflake\Http\Formatter
|
||||
*/
|
||||
class HtmlFormatter extends Application implements IFormatter
|
||||
class HtmlFormatter extends HttpService implements IFormatter
|
||||
{
|
||||
|
||||
public $data;
|
||||
|
||||
@@ -9,15 +9,14 @@ declare(strict_types=1);
|
||||
|
||||
namespace HttpServer\Http\Formatter;
|
||||
|
||||
use Exception;
|
||||
use HttpServer\Application;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use HttpServer\IInterface\IFormatter;
|
||||
|
||||
/**
|
||||
* Class JsonFormatter
|
||||
* @package Snowflake\Snowflake\Http\Formatter
|
||||
*/
|
||||
class JsonFormatter extends Application implements IFormatter
|
||||
class JsonFormatter extends HttpService implements IFormatter
|
||||
{
|
||||
public $data;
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace HttpServer\Http\Formatter;
|
||||
|
||||
|
||||
use Exception;
|
||||
use HttpServer\Application;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use SimpleXMLElement;
|
||||
use Swoole\Http\Response;
|
||||
use HttpServer\IInterface\IFormatter;
|
||||
@@ -21,7 +21,7 @@ use HttpServer\IInterface\IFormatter;
|
||||
* Class XmlFormatter
|
||||
* @package Snowflake\Snowflake\Http\Formatter
|
||||
*/
|
||||
class XmlFormatter extends Application implements IFormatter
|
||||
class XmlFormatter extends HttpService implements IFormatter
|
||||
{
|
||||
|
||||
public ?string $data = '';
|
||||
|
||||
@@ -4,7 +4,7 @@ declare(strict_types=1);
|
||||
namespace HttpServer\Http;
|
||||
|
||||
use Exception;
|
||||
use HttpServer\Application;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use HttpServer\IInterface\AuthIdentity;
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
@@ -33,7 +33,7 @@ defined('REQUEST_FAIL') or define('REQUEST_FAIL', 500);
|
||||
* @property-read $isPackage
|
||||
* @property-read $isReceive
|
||||
*/
|
||||
class Request extends Application
|
||||
class Request extends HttpService
|
||||
{
|
||||
|
||||
/** @var int $fd */
|
||||
|
||||
@@ -9,7 +9,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace HttpServer\Http;
|
||||
|
||||
use HttpServer\Application;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use HttpServer\Http\Formatter\HtmlFormatter;
|
||||
use HttpServer\Http\Formatter\JsonFormatter;
|
||||
use HttpServer\Http\Formatter\XmlFormatter;
|
||||
@@ -23,7 +23,7 @@ use Swoole\Http2\Response as S2Response;
|
||||
* Class Response
|
||||
* @package Snowflake\Snowflake\Http
|
||||
*/
|
||||
class Response extends Application
|
||||
class Response extends HttpService
|
||||
{
|
||||
|
||||
const JSON = 'json';
|
||||
|
||||
Reference in New Issue
Block a user