Development workflow
The development of Magento 2 components follows the minimum criteria necessary so that it can achieve the goal of delivering a theme or a functional module to your user and/ or client. These criteria are listed as follows:
- Dependencies declaration via
composer.json
- Component registration using
registration.php
- Components definition via XML components
- Publication and distribution of developed components
The act of declaring a file composer.json
is good practice for dependency management of components as well as containing important information about the theme or module that is being developed.
The registration.php
file already allows the Magento system to make the registration of the new component that can be used in the scope that you intend, and it can be added to core components of Magento in order to reuse the code already produced.
For example, the declaration of XML definition files enables the nomenclature of your component as well as the versions parameterization.
After...