Symfony 8.2: object mapper feature probe loads deprecated translation command
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start in ApiPlatformExtension and reproduce the warning by installing symfony/object-mapper with Symfony 8.2-dev, clearing the cache, and running debug:container --deprecations. Review the regression test that loads the extension with the new command available. Done means the new command namespace is preferred, the older class remains a fallback, and the legacy deprecation is not emitted.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- PHP
- Stars
- 2.6k
- Forks
- 984
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 87
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from api-platform/core
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
api-platform/core#8612 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
api-platform/core#8591 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
api-platform/core#8535 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
api-platform/core#8499 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
api-platform/core#8494 ·
Maintainers usually reply within 1 day
All issues in api-platform/core
Similar issues
-
0. Needs triage 35-feedback bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
unraid/webgui#2781 · 1 comment ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
symfony/maker-bundle#1841 ·
Maintainers usually reply within 1 day
-
bug complete-verify
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
MagnaCapax/PMSS#998 · 1 comment ·
Maintainers usually reply within 5 days
-
Bug (unconfirmed)
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
FreshRSS/FreshRSS#9394 · 1 comment ·
Maintainers usually reply within 1 day