Summer Special Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 8w52ceb345

You are implementing a custom module MyModule, which provides an implementation of \Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.

You are implementing a custom module MyModule, which provides an implementation of \Psr\Log\LoggerInterface called \MyCompany\MyModule\Logger.

The LoggerInterface has the default preference declared in app/etc/di.xml.

Keeping upgradability in mind, how do you make \MyCompany\MyModule\Logger the default implementation of the LoggerInterface globally?

A.

Declare a new preference for the LoggerInterface in app/code/myCompany/MyModule/etc/frontend/di.xml

B.

Declare a new preference for the LoggerInterface in MyCompany/MyModule/etc/di.xml

C.

Overwrite the existing preference for the LoggerInterface in app/etc/di.xml

D.

Declare a new preference for the LoggerInterface in app/code/MyCompany/MyModule/etc/global/di.xml

Magento-2-Certified-Associate-Developer PDF/Engine
  • Printable Format
  • Value of Money
  • 100% Pass Assurance
  • Verified Answers
  • Researched by Industry Experts
  • Based on Real Exams Scenarios
  • 100% Real Questions
buy now Magento-2-Certified-Associate-Developer pdf
Get 60% Discount on All Products, Use Coupon: "8w52ceb345"