refactor(ddd): 按 ddd 的思想进行了目录划分

This commit is contained in:
李东云
2022-04-27 19:02:16 +08:00
parent e759eda3c4
commit e6da312479
11 changed files with 699 additions and 35 deletions

View File

@@ -17,11 +17,16 @@
"php": "~8.0",
"composer/composer": "*",
"ergebnis/http-method": "^2.2",
"firebase/php-jwt": "^6.1",
"hyperf/config": "^2.2",
"hyperf/constants": "^2.2",
"hyperf/context": "^2.2",
"hyperf/database": "^2.2",
"hyperf/di": "^2.2",
"hyperf/framework": "^2.2",
"hyperf/http-server": "^2.2",
"hyperf/logger": "^2.2",
"hyperf/redis": "^2.2",
"hyperf/translation": "^2.2",
"lmc/http-constants": "^1.2",
"roave/dont": "^1.5",
@@ -29,7 +34,12 @@
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"roave/security-advisories": "dev-latest"
"roave/security-advisories": "dev-latest",
"hyperf/session": "^2.2"
},
"suggest": {
"hyperf/redis": "JWT 必需Session 根据实际需要来",
"hyperf/session": "Session 鉴权必需"
},
"config": {
"optimize-autoloader": true,

673
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "857f7bd1ec3c2d503b3fc358208b0cd1",
"content-hash": "08f82f08b280945a7f2f5446d2c98f4f",
"packages": [
{
"name": "composer/ca-bundle",
@@ -1064,6 +1064,69 @@
},
"time": "2020-11-24T22:02:12+00:00"
},
{
"name": "firebase/php-jwt",
"version": "v6.1.2",
"source": {
"type": "git",
"url": "https://github.com/firebase/php-jwt.git",
"reference": "c297139da7c6873dbd67cbd1093f09ec0bbd0c50"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/firebase/php-jwt/zipball/c297139da7c6873dbd67cbd1093f09ec0bbd0c50",
"reference": "c297139da7c6873dbd67cbd1093f09ec0bbd0c50",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": "^7.1||^8.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5||9.5"
},
"suggest": {
"paragonie/sodium_compat": "Support EdDSA (Ed25519) signatures when libsodium is not present"
},
"type": "library",
"autoload": {
"psr-4": {
"Firebase\\JWT\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Neuman Vong",
"email": "neuman+pear@twilio.com",
"role": "Developer"
},
{
"name": "Anant Narayanan",
"email": "anant@php.net",
"role": "Developer"
}
],
"description": "A simple library to encode and decode JSON Web Tokens (JWT) in PHP. Should conform to the current spec.",
"homepage": "https://github.com/firebase/php-jwt",
"keywords": [
"jwt",
"php"
],
"support": {
"issues": "https://github.com/firebase/php-jwt/issues",
"source": "https://github.com/firebase/php-jwt/tree/v6.1.2"
},
"time": "2022-04-21T14:37:18+00:00"
},
{
"name": "graham-campbell/result-type",
"version": "v1.0.4",
@@ -1132,6 +1195,77 @@
],
"time": "2021-11-21T21:41:47+00:00"
},
{
"name": "hyperf/config",
"version": "v2.2.0",
"source": {
"type": "git",
"url": "https://github.com/hyperf/config.git",
"reference": "ccdcc79ec244612c04f186e65b222ad778db75e9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/config/zipball/ccdcc79ec244612c04f186e65b222ad778db75e9",
"reference": "ccdcc79ec244612c04f186e65b222ad778db75e9",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"hyperf/contract": "~2.2.0",
"hyperf/utils": "~2.2.0",
"php": ">=7.2",
"psr/container": "^1.0|^2.0",
"symfony/finder": "^5.0"
},
"suggest": {
"hyperf/di": "Allows using @Value annotation",
"hyperf/event": "Allows using @Value annotation",
"hyperf/framework": "Allows using @Value annotation",
"vlucas/phpdotenv": "Allows using enviroment value to override the config"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.2-dev"
},
"hyperf": {
"config": "Hyperf\\Config\\ConfigProvider"
}
},
"autoload": {
"files": [
"./src/Functions.php"
],
"psr-4": {
"Hyperf\\Config\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "An independent component that provides configuration container.",
"homepage": "https://hyperf.io",
"keywords": [
"config",
"configuration",
"hyperf",
"php",
"swoole"
],
"support": {
"docs": "https://hyperf.wiki",
"issues": "https://github.com/hyperf/hyperf/issues",
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2021-07-18T06:50:14+00:00"
},
{
"name": "hyperf/constants",
"version": "v2.2.15",
@@ -1301,6 +1435,69 @@
},
"time": "2021-09-08T04:11:54+00:00"
},
{
"name": "hyperf/database",
"version": "v2.2.28",
"source": {
"type": "git",
"url": "https://github.com/hyperf/database.git",
"reference": "e5b75e3aa889227f869739a2fd54db94b482b7e0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/database/zipball/e5b75e3aa889227f869739a2fd54db94b482b7e0",
"reference": "e5b75e3aa889227f869739a2fd54db94b482b7e0",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"hyperf/macroable": "~2.2.0",
"hyperf/utils": "~2.2.8",
"nesbot/carbon": "^2.0",
"php": ">=7.2",
"psr/container": "^1.0|^2.0",
"psr/event-dispatcher": "^1.0"
},
"suggest": {
"doctrine/dbal": "Required to rename columns (^3.0).",
"nikic/php-parser": "Required to use ModelCommand. (^4.0)",
"php-di/phpdoc-reader": "Required to use ModelCommand. (^2.2)"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.2-dev"
}
},
"autoload": {
"psr-4": {
"Hyperf\\Database\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "A flexible database library.",
"homepage": "https://hyperf.io",
"keywords": [
"database",
"hyperf",
"php"
],
"support": {
"docs": "https://hyperf.wiki",
"issues": "https://github.com/hyperf/hyperf/issues",
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2022-03-10T07:58:49+00:00"
},
{
"name": "hyperf/di",
"version": "v2.2.31",
@@ -1931,6 +2128,132 @@
},
"time": "2021-10-25T01:29:21+00:00"
},
{
"name": "hyperf/pool",
"version": "v2.2.0",
"source": {
"type": "git",
"url": "https://github.com/hyperf/pool.git",
"reference": "80c02966b9cb8ac939b8c52f6d4981206d69c57d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/pool/zipball/80c02966b9cb8ac939b8c52f6d4981206d69c57d",
"reference": "80c02966b9cb8ac939b8c52f6d4981206d69c57d",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"hyperf/contract": "~2.2.0",
"hyperf/utils": "~2.2.0",
"php": ">=7.2",
"psr/container": "^1.0|^2.0"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.2-dev"
},
"hyperf": {
"config": "Hyperf\\Pool\\ConfigProvider"
}
},
"autoload": {
"psr-4": {
"Hyperf\\Pool\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "An independent universal connection pool component.",
"homepage": "https://hyperf.io",
"keywords": [
"connection-pool",
"hyperf",
"php",
"swoole"
],
"support": {
"docs": "https://hyperf.wiki",
"issues": "https://github.com/hyperf/hyperf/issues",
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2021-07-18T06:50:14+00:00"
},
{
"name": "hyperf/redis",
"version": "v2.2.30",
"source": {
"type": "git",
"url": "https://github.com/hyperf/redis.git",
"reference": "c983a646a1910cc5a6141971f499ac14caf906f1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/redis/zipball/c983a646a1910cc5a6141971f499ac14caf906f1",
"reference": "c983a646a1910cc5a6141971f499ac14caf906f1",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"ext-redis": "*",
"hyperf/contract": "~2.2.0",
"hyperf/pool": "~2.2.0",
"hyperf/utils": "~2.2.0",
"php": ">=7.2",
"psr/container": "^1.0|^2.0"
},
"suggest": {
"ext-redis": "Required to use sentinel mode (>=5.2).",
"hyperf/di": "Create the RedisPool via dependency injection."
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.2-dev"
},
"hyperf": {
"config": "Hyperf\\Redis\\ConfigProvider"
}
},
"autoload": {
"psr-4": {
"Hyperf\\Redis\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "A redis component for hyperf.",
"homepage": "https://hyperf.io",
"keywords": [
"hyperf",
"php",
"pool",
"redis"
],
"support": {
"docs": "https://hyperf.wiki",
"issues": "https://github.com/hyperf/hyperf/issues",
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2022-03-30T05:21:10+00:00"
},
{
"name": "hyperf/server",
"version": "v2.2.21",
@@ -2495,6 +2818,108 @@
],
"time": "2022-03-14T12:44:37+00:00"
},
{
"name": "nesbot/carbon",
"version": "2.57.0",
"source": {
"type": "git",
"url": "https://github.com/briannesbitt/Carbon.git",
"reference": "4a54375c21eea4811dbd1149fe6b246517554e78"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/briannesbitt/Carbon/zipball/4a54375c21eea4811dbd1149fe6b246517554e78",
"reference": "4a54375c21eea4811dbd1149fe6b246517554e78",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"ext-json": "*",
"php": "^7.1.8 || ^8.0",
"symfony/polyfill-mbstring": "^1.0",
"symfony/polyfill-php80": "^1.16",
"symfony/translation": "^3.4 || ^4.0 || ^5.0 || ^6.0"
},
"require-dev": {
"doctrine/dbal": "^2.0 || ^3.0",
"doctrine/orm": "^2.7",
"friendsofphp/php-cs-fixer": "^3.0",
"kylekatarnls/multi-tester": "^2.0",
"phpmd/phpmd": "^2.9",
"phpstan/extension-installer": "^1.0",
"phpstan/phpstan": "^0.12.54 || ^1.0",
"phpunit/phpunit": "^7.5.20 || ^8.5.14",
"squizlabs/php_codesniffer": "^3.4"
},
"bin": [
"bin/carbon"
],
"type": "library",
"extra": {
"branch-alias": {
"dev-3.x": "3.x-dev",
"dev-master": "2.x-dev"
},
"laravel": {
"providers": [
"Carbon\\Laravel\\ServiceProvider"
]
},
"phpstan": {
"includes": [
"extension.neon"
]
}
},
"autoload": {
"psr-4": {
"Carbon\\": "src/Carbon/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Brian Nesbitt",
"email": "brian@nesbot.com",
"homepage": "https://markido.com"
},
{
"name": "kylekatarnls",
"homepage": "https://github.com/kylekatarnls"
}
],
"description": "An API extension for DateTime that supports 281 different languages.",
"homepage": "https://carbon.nesbot.com",
"keywords": [
"date",
"datetime",
"time"
],
"support": {
"docs": "https://carbon.nesbot.com/docs",
"issues": "https://github.com/briannesbitt/Carbon/issues",
"source": "https://github.com/briannesbitt/Carbon"
},
"funding": [
{
"url": "https://opencollective.com/Carbon",
"type": "open_collective"
},
{
"url": "https://tidelift.com/funding/github/packagist/nesbot/carbon",
"type": "tidelift"
}
],
"time": "2022-02-13T18:13:33+00:00"
},
{
"name": "nikic/fast-route",
"version": "v1.3.0",
@@ -4501,6 +4926,191 @@
],
"time": "2022-01-02T09:55:41+00:00"
},
{
"name": "symfony/translation",
"version": "v6.0.7",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1",
"reference": "b2792b39d74cf41ea3065f27fd2ddf0b556ac7a1",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=8.0.2",
"symfony/polyfill-mbstring": "~1.0",
"symfony/translation-contracts": "^2.3|^3.0"
},
"conflict": {
"symfony/config": "<5.4",
"symfony/console": "<5.4",
"symfony/dependency-injection": "<5.4",
"symfony/http-kernel": "<5.4",
"symfony/twig-bundle": "<5.4",
"symfony/yaml": "<5.4"
},
"provide": {
"symfony/translation-implementation": "2.3|3.0"
},
"require-dev": {
"psr/log": "^1|^2|^3",
"symfony/config": "^5.4|^6.0",
"symfony/console": "^5.4|^6.0",
"symfony/dependency-injection": "^5.4|^6.0",
"symfony/finder": "^5.4|^6.0",
"symfony/http-client-contracts": "^1.1|^2.0|^3.0",
"symfony/http-kernel": "^5.4|^6.0",
"symfony/intl": "^5.4|^6.0",
"symfony/polyfill-intl-icu": "^1.21",
"symfony/service-contracts": "^1.1.2|^2|^3",
"symfony/yaml": "^5.4|^6.0"
},
"suggest": {
"psr/log-implementation": "To use logging capability in translator",
"symfony/config": "",
"symfony/yaml": ""
},
"type": "library",
"autoload": {
"files": [
"Resources/functions.php"
],
"psr-4": {
"Symfony\\Component\\Translation\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Provides tools to internationalize your application",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/translation/tree/v6.0.7"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2022-03-31T17:18:25+00:00"
},
{
"name": "symfony/translation-contracts",
"version": "v3.0.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation-contracts.git",
"reference": "1b6ea5a7442af5a12dba3dbd6d71034b5b234e77"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation-contracts/zipball/1b6ea5a7442af5a12dba3dbd6d71034b5b234e77",
"reference": "1b6ea5a7442af5a12dba3dbd6d71034b5b234e77",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"php": ">=8.0.2"
},
"suggest": {
"symfony/translation-implementation": ""
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "3.0-dev"
},
"thanks": {
"name": "symfony/contracts",
"url": "https://github.com/symfony/contracts"
}
},
"autoload": {
"psr-4": {
"Symfony\\Contracts\\Translation\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Nicolas Grekas",
"email": "p@tchwork.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Generic abstractions related to translation",
"homepage": "https://symfony.com",
"keywords": [
"abstractions",
"contracts",
"decoupling",
"interfaces",
"interoperability",
"standards"
],
"support": {
"source": "https://github.com/symfony/translation-contracts/tree/v3.0.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-09-07T12:43:40+00:00"
},
{
"name": "teapot/status-code",
"version": "v1.1.2",
@@ -4642,6 +5252,67 @@
}
],
"packages-dev": [
{
"name": "hyperf/session",
"version": "v2.2.30",
"source": {
"type": "git",
"url": "https://github.com/hyperf/session.git",
"reference": "1ac0beaf828ed2cb6973e8d525aad4f1a97ccee0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/hyperf/session/zipball/1ac0beaf828ed2cb6973e8d525aad4f1a97ccee0",
"reference": "1ac0beaf828ed2cb6973e8d525aad4f1a97ccee0",
"shasum": "",
"mirrors": [
{
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
"preferred": true
}
]
},
"require": {
"hyperf/utils": "~2.2.0",
"php": ">=7.2",
"psr/http-server-middleware": "^1.0"
},
"suggest": {
"hyperf/config": "Required to load session config.",
"psr/container": "Required to use SessionFactory."
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.2-dev"
},
"hyperf": {
"config": "Hyperf\\Session\\ConfigProvider"
}
},
"autoload": {
"psr-4": {
"Hyperf\\Session\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "A session library",
"homepage": "https://hyperf.io",
"keywords": [
"php",
"session"
],
"support": {
"docs": "https://hyperf.wiki",
"issues": "https://github.com/hyperf/hyperf/issues",
"pull-request": "https://github.com/hyperf/hyperf/pulls",
"source": "https://github.com/hyperf/hyperf"
},
"time": "2022-04-03T10:50:03+00:00"
},
{
"name": "myclabs/deep-copy",
"version": "1.11.0",

View File

@@ -1,6 +1,9 @@
# HyperfDevelopmentKit
用于 Hyperf 框架的开发工具集。
## 特性
按 [DDD领域驱动设计]() 的思想进行目录结构划分
## 安装
```
composer config secure-http false \

View File

@@ -1,20 +0,0 @@
<?php
declare(strict_types=1);
namespace Singularity\HyperfDevelopmentKit\Example;
class Greeting
{
private $name = 'Stranger';
public function __construct( $name = 'Stranger')
{
$this->name = $name;
}
public function sayHello(): string
{
return 'Hello ' . $this->name;
}
}

View File

@@ -7,14 +7,14 @@
* Created on 2022/4/25
*/
namespace Singularity\HyperfDevelopmentKit\Constants;
namespace Singularity\HyperfDevelopmentKit\Utils\Constants;
use Hyperf\Constants\AbstractConstants;
use Hyperf\Constants\Annotation\Constants;
/**
* @Constants
* Singularity\HyperfDevelopmentKit\Constants\CommonErrorCode@hyperf-development-kit
* Singularity\HyperfDevelopmentKit\Utils\Constants\CommonErrorCode@hyperf-development-kit
*
* @author 李东云<dongyun.li@luxcreo.cn>
* Powered by PhpStorm

View File

@@ -7,7 +7,7 @@
* Created on 2022/4/25
*/
namespace Singularity\HyperfDevelopmentKit\Controller;
namespace Singularity\HyperfDevelopmentKit\Utils\Controller;
use Dont\DontCall;
use Dont\DontCallStatic;
@@ -25,7 +25,7 @@ use Hyperf\HttpServer\Contract\ResponseInterface;
/**
* 抽象控制器基类
* Singularity\HyperfDevelopmentKit\Controller\AbstractController@hyperf-development-kit
* Singularity\HyperfDevelopmentKit\Utils\Controller\AbstractController@hyperf-development-kit
*
* @author 李东云<dongyun.li@luxcreo.cn>
* Powered by PhpStorm

View File

@@ -1,9 +1,9 @@
<?php
namespace Singularity\HyperfDevelopmentKit\Exceptions;
namespace Singularity\HyperfDevelopmentKit\Utils\Exceptions;
use Hyperf\HttpMessage\Exception\HttpException;
use Singularity\HyperfDevelopmentKit\Constants\CommonErrorCode;
use Singularity\HyperfDevelopmentKit\Utils\Constants\CommonErrorCode;
use Teapot\StatusCode\RFC\RFC7231;
use Throwable;

View File

@@ -1,9 +1,9 @@
<?php
namespace Singularity\HyperfDevelopmentKit\Exceptions;
namespace Singularity\HyperfDevelopmentKit\Utils\Exceptions;
use Hyperf\HttpMessage\Exception\HttpException;
use Singularity\HyperfDevelopmentKit\Constants\CommonErrorCode;
use Singularity\HyperfDevelopmentKit\Utils\Constants\CommonErrorCode;
use Teapot\StatusCode\RFC\RFC7231;
use Throwable;

View File

@@ -1,6 +1,6 @@
<?php
namespace Singularity\HyperfDevelopmentKit\Exceptions;
namespace Singularity\HyperfDevelopmentKit\Utils\Exceptions;
use Hyperf\Server\Exception\ServerException;

View File

@@ -1,10 +1,10 @@
<?php
namespace Singularity\HyperfDevelopmentKit\Exceptions;
namespace Singularity\HyperfDevelopmentKit\Utils\Exceptions;
use Hyperf\HttpMessage\Exception\HttpException;
use Lmc\HttpConstants\Header;
use Singularity\HyperfDevelopmentKit\Constants\CommonErrorCode;
use Singularity\HyperfDevelopmentKit\Utils\Constants\CommonErrorCode;
use Teapot\StatusCode\RFC\RFC7235;
use Throwable;

View File

@@ -1,11 +1,11 @@
<?php
namespace Singularity\HyperfDevelopmentKit\Exceptions;
namespace Singularity\HyperfDevelopmentKit\Utils\Exceptions;
use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpMessage\Exception\HttpException;
use Singularity\HyperfDevelopmentKit\Constants\CommonErrorCode;
use Singularity\HyperfDevelopmentKit\Utils\Constants\CommonErrorCode;
use Teapot\StatusCode\RFC\RFC4918;
use Throwable;