1. 调整异常处理类

2. 统一职责分工
3. 清除多余代码
This commit is contained in:
技术老胡
2026-02-24 13:37:35 +08:00
parent d29751cce8
commit d5a134d3a8
59 changed files with 3370 additions and 646 deletions

446
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": "ea45057d8c2734266a897db21c27e75c",
"content-hash": "c9b20b999efb47e639901ded2ade0fdb",
"packages": [
{
"name": "brick/math",
@@ -225,6 +225,150 @@
],
"time": "2025-08-10T19:31:58+00:00"
},
{
"name": "doctrine/lexer",
"version": "3.0.1",
"source": {
"type": "git",
"url": "https://github.com/doctrine/lexer.git",
"reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd",
"reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd",
"shasum": ""
},
"require": {
"php": "^8.1"
},
"require-dev": {
"doctrine/coding-standard": "^12",
"phpstan/phpstan": "^1.10",
"phpunit/phpunit": "^10.5",
"psalm/plugin-phpunit": "^0.18.3",
"vimeo/psalm": "^5.21"
},
"type": "library",
"autoload": {
"psr-4": {
"Doctrine\\Common\\Lexer\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Guilherme Blanco",
"email": "guilhermeblanco@gmail.com"
},
{
"name": "Roman Borschel",
"email": "roman@code-factory.org"
},
{
"name": "Johannes Schmitt",
"email": "schmittjoh@gmail.com"
}
],
"description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.",
"homepage": "https://www.doctrine-project.org/projects/lexer.html",
"keywords": [
"annotations",
"docblock",
"lexer",
"parser",
"php"
],
"support": {
"issues": "https://github.com/doctrine/lexer/issues",
"source": "https://github.com/doctrine/lexer/tree/3.0.1"
},
"funding": [
{
"url": "https://www.doctrine-project.org/sponsorship.html",
"type": "custom"
},
{
"url": "https://www.patreon.com/phpdoctrine",
"type": "patreon"
},
{
"url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer",
"type": "tidelift"
}
],
"time": "2024-02-05T11:56:58+00:00"
},
{
"name": "egulias/email-validator",
"version": "4.0.4",
"source": {
"type": "git",
"url": "https://github.com/egulias/EmailValidator.git",
"reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/egulias/EmailValidator/zipball/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa",
"reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa",
"shasum": ""
},
"require": {
"doctrine/lexer": "^2.0 || ^3.0",
"php": ">=8.1",
"symfony/polyfill-intl-idn": "^1.26"
},
"require-dev": {
"phpunit/phpunit": "^10.2",
"vimeo/psalm": "^5.12"
},
"suggest": {
"ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "4.0.x-dev"
}
},
"autoload": {
"psr-4": {
"Egulias\\EmailValidator\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Eduardo Gulias Davis"
}
],
"description": "A library for validating emails against several RFCs",
"homepage": "https://github.com/egulias/EmailValidator",
"keywords": [
"email",
"emailvalidation",
"emailvalidator",
"validation",
"validator"
],
"support": {
"issues": "https://github.com/egulias/EmailValidator/issues",
"source": "https://github.com/egulias/EmailValidator/tree/4.0.4"
},
"funding": [
{
"url": "https://github.com/egulias",
"type": "github"
}
],
"time": "2025-03-06T22:45:56+00:00"
},
{
"name": "firebase/php-jwt",
"version": "v7.0.2",
@@ -1697,6 +1841,120 @@
},
"time": "2026-02-04T15:14:59+00:00"
},
{
"name": "illuminate/translation",
"version": "v12.52.0",
"source": {
"type": "git",
"url": "https://github.com/illuminate/translation.git",
"reference": "18aa24aba6f2ab2447b9b903ae7360725fe5bdd0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/illuminate/translation/zipball/18aa24aba6f2ab2447b9b903ae7360725fe5bdd0",
"reference": "18aa24aba6f2ab2447b9b903ae7360725fe5bdd0",
"shasum": ""
},
"require": {
"illuminate/collections": "^12.0",
"illuminate/contracts": "^12.0",
"illuminate/filesystem": "^12.0",
"illuminate/macroable": "^12.0",
"illuminate/support": "^12.0",
"php": "^8.2"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "12.x-dev"
}
},
"autoload": {
"psr-4": {
"Illuminate\\Translation\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Taylor Otwell",
"email": "taylor@laravel.com"
}
],
"description": "The Illuminate Translation package.",
"homepage": "https://laravel.com",
"support": {
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2026-02-06T12:12:31+00:00"
},
{
"name": "illuminate/validation",
"version": "v12.52.0",
"source": {
"type": "git",
"url": "https://github.com/illuminate/validation.git",
"reference": "195b7dd66548a6a82dd93bf6280926bf9039903c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/illuminate/validation/zipball/195b7dd66548a6a82dd93bf6280926bf9039903c",
"reference": "195b7dd66548a6a82dd93bf6280926bf9039903c",
"shasum": ""
},
"require": {
"brick/math": "^0.11|^0.12|^0.13|^0.14",
"egulias/email-validator": "^3.2.5|^4.0",
"ext-filter": "*",
"ext-mbstring": "*",
"illuminate/collections": "^12.0",
"illuminate/container": "^12.0",
"illuminate/contracts": "^12.0",
"illuminate/macroable": "^12.0",
"illuminate/support": "^12.0",
"illuminate/translation": "^12.0",
"php": "^8.2",
"symfony/http-foundation": "^7.2",
"symfony/mime": "^7.2",
"symfony/polyfill-php83": "^1.33"
},
"suggest": {
"illuminate/database": "Required to use the database presence verifier (^12.0).",
"ramsey/uuid": "Required to use Validator::validateUuid() (^4.7)."
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "12.x-dev"
}
},
"autoload": {
"psr-4": {
"Illuminate\\Validation\\": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Taylor Otwell",
"email": "taylor@laravel.com"
}
],
"description": "The Illuminate Validation package.",
"homepage": "https://laravel.com",
"support": {
"issues": "https://github.com/laravel/framework/issues",
"source": "https://github.com/laravel/framework"
},
"time": "2026-02-14T23:03:41+00:00"
},
{
"name": "laravel/serializable-closure",
"version": "v1.3.7",
@@ -5019,142 +5277,6 @@
],
"time": "2025-09-11T10:15:23+00:00"
},
{
"name": "topthink/think-container",
"version": "v3.0.2",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-container.git",
"reference": "b2df244be1e7399ad4c8be1ccc40ed57868f730a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-container/zipball/b2df244be1e7399ad4c8be1ccc40ed57868f730a",
"reference": "b2df244be1e7399ad4c8be1ccc40ed57868f730a",
"shasum": ""
},
"require": {
"php": ">=8.0",
"psr/container": "^2.0",
"topthink/think-helper": "^3.1"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"type": "library",
"autoload": {
"files": [],
"psr-4": {
"think\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "liu21st@gmail.com"
}
],
"description": "PHP Container & Facade Manager",
"support": {
"issues": "https://github.com/top-think/think-container/issues",
"source": "https://github.com/top-think/think-container/tree/v3.0.2"
},
"time": "2025-04-07T03:21:51+00:00"
},
{
"name": "topthink/think-helper",
"version": "v3.1.12",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-helper.git",
"reference": "fe277121112a8f1c872e169a733ca80bb11c4acb"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-helper/zipball/fe277121112a8f1c872e169a733ca80bb11c4acb",
"reference": "fe277121112a8f1c872e169a733ca80bb11c4acb",
"shasum": ""
},
"require": {
"php": ">=7.1.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5"
},
"type": "library",
"autoload": {
"files": [
"src/helper.php"
],
"psr-4": {
"think\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "yunwuxin",
"email": "448901948@qq.com"
}
],
"description": "The ThinkPHP6 Helper Package",
"support": {
"issues": "https://github.com/top-think/think-helper/issues",
"source": "https://github.com/top-think/think-helper/tree/v3.1.12"
},
"time": "2025-12-26T09:58:29+00:00"
},
{
"name": "topthink/think-validate",
"version": "v3.0.7",
"source": {
"type": "git",
"url": "https://github.com/top-think/think-validate.git",
"reference": "85063f6d4ef8ed122f17a36179dc3e0949b30988"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/top-think/think-validate/zipball/85063f6d4ef8ed122f17a36179dc3e0949b30988",
"reference": "85063f6d4ef8ed122f17a36179dc3e0949b30988",
"shasum": ""
},
"require": {
"php": ">=8.0",
"topthink/think-container": ">=3.0"
},
"type": "library",
"autoload": {
"files": [
"src/helper.php"
],
"psr-4": {
"think\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"Apache-2.0"
],
"authors": [
{
"name": "liu21st",
"email": "liu21st@gmail.com"
}
],
"description": "think validate",
"support": {
"issues": "https://github.com/top-think/think-validate/issues",
"source": "https://github.com/top-think/think-validate/tree/v3.0.7"
},
"time": "2025-06-11T05:51:40+00:00"
},
{
"name": "vlucas/phpdotenv",
"version": "v5.6.3",
@@ -5410,16 +5532,16 @@
},
{
"name": "webman/console",
"version": "v2.1.12",
"version": "v2.2.1",
"source": {
"type": "git",
"url": "https://github.com/webman-php/console.git",
"reference": "7f1288ace2c7b6326e5a756dba067c74bd7cd2bc"
"reference": "3c1a50296f7b3b3eff3a8fcda8906276dae3a18f"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webman-php/console/zipball/7f1288ace2c7b6326e5a756dba067c74bd7cd2bc",
"reference": "7f1288ace2c7b6326e5a756dba067c74bd7cd2bc",
"url": "https://api.github.com/repos/webman-php/console/zipball/3c1a50296f7b3b3eff3a8fcda8906276dae3a18f",
"reference": "3c1a50296f7b3b3eff3a8fcda8906276dae3a18f",
"shasum": ""
},
"require": {
@@ -5460,7 +5582,7 @@
"source": "https://github.com/webman-php/console",
"wiki": "http://www.workerman.net/doc/webman"
},
"time": "2026-01-20T15:17:31+00:00"
"time": "2026-02-23T02:46:47+00:00"
},
{
"name": "webman/database",
@@ -5601,6 +5723,46 @@
},
"time": "2025-11-14T07:12:52+00:00"
},
{
"name": "webman/validation",
"version": "v2.2.0",
"source": {
"type": "git",
"url": "https://github.com/webman-php/validation.git",
"reference": "afe9c66bf612d969d5657c83617bdb8d92e62ee3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/webman-php/validation/zipball/afe9c66bf612d969d5657c83617bdb8d92e62ee3",
"reference": "afe9c66bf612d969d5657c83617bdb8d92e62ee3",
"shasum": ""
},
"require": {
"illuminate/translation": "*",
"illuminate/validation": "*",
"workerman/webman-framework": "^2.1 || dev-master"
},
"require-dev": {
"phpunit/phpunit": "*"
},
"type": "library",
"autoload": {
"psr-4": {
"Webman\\Validation\\": "src",
"support\\validation\\": "src/support/validation"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Webman plugin webman/validation",
"support": {
"issues": "https://github.com/webman-php/validation/issues",
"source": "https://github.com/webman-php/validation/tree/v2.2.0"
},
"time": "2026-02-21T08:22:43+00:00"
},
{
"name": "workerman/coroutine",
"version": "v1.1.4",