Symfony 8.2: object mapper feature probe loads deprecated translation command
维护者通常 1 天内回复
评估
调研方向
从 ApiPlatformExtension 开始,通过在 Symfony 8.2-dev 中安装 symfony/object-mapper、清理缓存并运行 debug:container --deprecations 来重现警告。检查在新命令可用时加载该扩展的回归测试。完成标准是优先使用新的命令命名空间,保留旧类作为 fallback,并且不发出 legacy deprecation。
由索引模型根据 Issue 内容生成。
描述
With API Platform 5.0.1 and Symfony 8.2-dev, compiling the application emits a deprecation for Symfony\Bundle\FrameworkBundle\Command\TranslationExtractCommand.
ApiPlatformExtension uses class_exists(TranslationExtractCommand::class) as part of its object-mapper availability gate. Symfony 8.2 moved this command into Symfony\Component\Translation\Command; probing the FrameworkBundle compatibility class autoloads its deprecation even though the command is not used.
Reproduce by installing symfony/object-mapper alongside Symfony 8.2-dev and API Platform, clearing the application cache, and running debug:container --deprecations.
A regression test loading the extension with the new command available confirms that the legacy command is loaded before the fix. Checking the new namespace first, with the existing class as a fallback for older Symfony versions, avoids the warning while retaining object-mapper configuration.
- 主要语言
- PHP
- 星标
- 2.6k
- 派生
- 989
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 104
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
api-platform/core 的其他 Issue
-
JSON:API: resource schemas (`*.jsonapi`) have `properties` but no `type: object`可能已有人在做 @ousamabenyounes 于 1 天前认领。 未关闭
难度 2/5 1 小时以内 新手友好度 80/100
api-platform/core#8701 ·
维护者通常 1 天内回复
-
JSON:API: `JsonApiCollectionBaseSchemaNoPagination` declares `data` as `type: array` without `items`未关闭
难度 2/5 1-3 小时 新手友好度 82/100
api-platform/core#8699 ·
维护者通常 1 天内回复
-
api:openapi:export --spec-version=3.0.0 outputs `webhooks`, which is invalid in OpenAPI 3.0可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
api-platform/core#8690 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
api-platform/core#8680 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
api-platform/core#8725 ·
维护者通常 1 天内回复
查看 api-platform/core 的全部 Issue
相似的 Issue
-
Authentication / Authorization Feature: Volunteer
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 80/100
维护者通常 1 天内回复
-
PHP workflow streaming requests buffer the full SSE response可能已有人在做 @Winoren 今天认领。 未关闭review: medium
难度 2/5 1-3 小时 新手友好度 84/100
langgenius/dify#44270 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
bug customer-reported
难度 1/5 1 小时以内 新手友好度 90/100
MagnaCapax/PMSS#1085 ·
维护者通常 5 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复