Consumers & ObjectManager & Area code issue
Open
Nobody has claimed this yet.
Area: Framework
Component: Amqp
Issue: Confirmed
Priority: P2
Progress: PR in progress
Reported on 2.4.6-p1
Reproduced on 2.4.x
Triage: Dev.Experience
- Dominant language
- PHP
- Stars
- 12.2k
- Forks
- 9.4k
- PR merge metrics
- No merged PRs in 30d
Description
Preconditions and environment
- Magento version 2.4.6-p1
- AMQP
Steps to reproduce
- Create a consumer that try to create an object :
ObjectManager::getInstance()->create(CustomClass::class) - Add an
\Magento\Catalog\Model\Product\Copierargument toCustomClassconstructor bin/magento queue:consumers:start your-consumer --area-code=adminhtml- dispatch a message on queue
Expected result
nothing happens
Actual result
Cannot instantiate interface Magento\Catalog\Model\Product\CopyConstructorInterface
Additional information
No response
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Contributor 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.
Assessment
This issue has not been assessed yet.