QuestionQ1
Customize Commerce featuresWithin a custom module, an Architect needs to define a new XML configuration file. The module must be able to read every XML configuration file declared in the system, merge them, and use their values in a PHP class.
Which two steps should the Architect take to satisfy this requirement?
Choose two
- A Inject a “reader” dependency for “Magento\Framework\Config\Data” in di.xml
- B Write a plugin for \Magento\Framework\Config\Data::get() and read the custom xml files
- C Create a Data class that implements “\Magento\Framework\Config\Data”
- D Append the custom xml file name in “Magento\Config\Model\Config\Structure\Reader” in di.xml
- E Make a Reader class that implements “\Magento\Framework\Config\Reader\Filesystem”
Community Discussion