改名
This commit is contained in:
@@ -5,20 +5,20 @@ declare(strict_types=1);
|
||||
namespace HttpServer\Route;
|
||||
|
||||
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use HttpServer\Exception\AuthException;
|
||||
use HttpServer\Route\Filter\BodyFilter;
|
||||
use HttpServer\Route\Filter\FilterException;
|
||||
use HttpServer\Route\Filter\HeaderFilter;
|
||||
use HttpServer\Route\Filter\QueryFilter;
|
||||
use Exception;
|
||||
use HttpServer\Application;
|
||||
use Snowflake\Snowflake;
|
||||
|
||||
/**
|
||||
* Class Filter
|
||||
* @package Snowflake\Snowflake\Route
|
||||
*/
|
||||
class Filter extends Application
|
||||
class Filter extends HttpService
|
||||
{
|
||||
|
||||
/** @var Filter\Filter[] */
|
||||
|
||||
@@ -6,14 +6,14 @@ namespace HttpServer\Route\Filter;
|
||||
|
||||
|
||||
use Exception;
|
||||
use HttpServer\Application;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use validator\Validator;
|
||||
|
||||
/**
|
||||
* Class Filter
|
||||
* @package Snowflake\Snowflake\Route\Filter
|
||||
*/
|
||||
abstract class Filter extends Application
|
||||
abstract class Filter extends HttpService
|
||||
{
|
||||
|
||||
public array $rules = [];
|
||||
|
||||
@@ -6,7 +6,7 @@ namespace HttpServer\Route;
|
||||
|
||||
|
||||
use Exception;
|
||||
use HttpServer\Application;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use Snowflake\Exception\ConfigException;
|
||||
use Snowflake\Snowflake;
|
||||
|
||||
@@ -14,7 +14,7 @@ use Snowflake\Snowflake;
|
||||
* Class TcpListen
|
||||
* @package Snowflake\Snowflake\Route
|
||||
*/
|
||||
class Handler extends Application
|
||||
class Handler extends HttpService
|
||||
{
|
||||
|
||||
/** @var Router */
|
||||
|
||||
@@ -6,9 +6,9 @@ namespace HttpServer\Route;
|
||||
|
||||
|
||||
use Closure;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use HttpServer\Http\Request;
|
||||
use Exception;
|
||||
use HttpServer\Application;
|
||||
|
||||
use JetBrains\PhpStorm\Pure;
|
||||
use ReflectionException;
|
||||
@@ -24,7 +24,7 @@ use function Input;
|
||||
* Class Node
|
||||
* @package Snowflake\Snowflake\Route
|
||||
*/
|
||||
class Node extends Application
|
||||
class Node extends HttpService
|
||||
{
|
||||
|
||||
public string $path = '';
|
||||
|
||||
@@ -5,9 +5,9 @@ namespace HttpServer\Route;
|
||||
|
||||
use Closure;
|
||||
use Exception;
|
||||
use HttpServer\Abstracts\HttpService;
|
||||
use HttpServer\Http\Request;
|
||||
use HttpServer\IInterface\RouterInterface;
|
||||
use HttpServer\Application;
|
||||
|
||||
use Snowflake\Abstracts\Config;
|
||||
use Snowflake\Exception\ComponentException;
|
||||
@@ -21,7 +21,7 @@ defined('ROUTER_HASH') or define('ROUTER_HASH', 2);
|
||||
* Class Router
|
||||
* @package Snowflake\Snowflake\Route
|
||||
*/
|
||||
class Router extends Application implements RouterInterface
|
||||
class Router extends HttpService implements RouterInterface
|
||||
{
|
||||
/** @var Node[] $nodes */
|
||||
public array $nodes = [];
|
||||
|
||||
Reference in New Issue
Block a user