Where should the dependency be declared?

You are writing a customization for the customer module. You need to make sure the configuration files from your module are loaded after the customer module’s configuration.
Where should the dependency be declared?
A. composer.json
B. etc/module.xml
C. etc/config.xml
D. etc/di.xml

Download Printable PDF. VALID exam to help you PASS.

5 thoughts on “Where should the dependency be declared?

  1. B is correct. tag is used to tell magento which modules should be loaded before yours.
    Composer won’t secure the loading sequence, instead will tell you what modules are required (require tag) for the proper function of your module. By using suggest tag on composer, you just give information about what module would add extra functionality to yours (they are not mandatory to be installed).

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.