From 6bbcb702dc2ef8c1bd3040c3cb5a160dafc88c28 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sat, 13 Jun 2026 02:49:16 +0000 Subject: [PATCH] =?UTF-8?q?fix(deps):=20=E8=A1=A5=E5=9B=9E=20symfony/yaml?= =?UTF-8?q?=20=E6=98=BE=E5=BC=8F=E4=BE=9D=E8=B5=96,=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=8D=87=E7=BA=A7=E5=90=8E=E5=BE=AE=E5=BA=94=E7=94=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=20500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Laravel 8→13 升级后依赖树变化导致 symfony/yaml 不再被传递引入, 而 app/Module/Apps.php 直接 use Symfony\Component\Yaml\Yaml 解析微应用 config.yml。Apps::isInstalledThrow() 在所有微应用控制器构造函数中调用, 缺类导致审批中心等应用中心微应用接口及 AiTaskLoopTask 全部 500。 Co-Authored-By: Claude Opus 4.8 (1M context) --- composer.json | 3 +- composer.lock | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 79 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 117e18498..5cef14fc4 100644 --- a/composer.json +++ b/composer.json @@ -39,7 +39,8 @@ "phpoffice/phpword": "^1.4", "predis/predis": "^2.3", "smalot/pdfparser": "^2.11", - "symfony/console": "^7.4" + "symfony/console": "^7.4", + "symfony/yaml": "^7.4" }, "require-dev": { "barryvdh/laravel-ide-helper": "^3.7", diff --git a/composer.lock b/composer.lock index 640faa57b..1000742d3 100644 --- a/composer.lock +++ b/composer.lock @@ -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": "ed96e1ded2a0dd87cdc42fc951ea848c", + "content-hash": "6e15c4192dce5dc139bbff83fc0f8db8", "packages": [ { "name": "brick/math", @@ -8020,6 +8020,82 @@ ], "time": "2026-05-29T05:06:50+00:00" }, + { + "name": "symfony/yaml", + "version": "v7.4.13", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "a7ec3b1156faf8815db7683ec7c1e7338e6f977c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/a7ec3b1156faf8815db7683ec7c1e7338e6f977c", + "reference": "a7ec3b1156faf8815db7683ec7c1e7338e6f977c", + "shasum": "" + }, + "require": { + "php": ">=8.2", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<6.4" + }, + "require-dev": { + "symfony/console": "^6.4|^7.0|^8.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "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": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v7.4.13" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-25T06:06:12+00:00" + }, { "name": "tijsverkoyen/css-to-inline-styles", "version": "v2.4.0",