Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AD0-E716 topic 1 question 9 discussion

Actual exam question from Adobe's AD0-E716
Question #: 9
Topic #: 1
[All AD0-E716 Questions]

An Adobe Commerce developer is developing a custom module. As part of their implementation they have decided that all instances of their Custom\Module\Model\Example class should receive a new instance of Magento\Filesystem\Adapter\Local.
How would the developer achieve this using di.xml?

  • A.
  • B.
  • C.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
arierave
1 month, 3 weeks ago
Selected Answer: C
Sorry, Copilot gave the wrong answer, and claude.ai Pro correctly confirmed C
upvoted 1 times
...
arierave
1 month, 3 weeks ago
Selected Answer: B
According to copilot option B: By setting singleton="false", you ensure that a new instance of Magento\Filesystem\Adapter\Local is injected into each instance of Custom\Module\Model\Example. This approach allows you to customize the behavior without affecting other modules that might use the default singleton instance of Magento\Filesystem\Adapter\Local. Therefore, option B aligns with the desired outcome. 🚀
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...