Modular development in Magento 2
-
Upload
igor-minyaylo -
Category
Software
-
view
33 -
download
5
Transcript of Modular development in Magento 2
![Page 1: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/1.jpg)
May 2, 2023
Modular development in Magento 2
Igor Miniailo
![Page 2: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/2.jpg)
© 2013
Agenda1 Magento 2 goals
2 Modularity
3 Magento 1 coupling diagram
4 Decoupling
5Modularity examples
![Page 3: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/3.jpg)
© 2013
Magento 2 Goals
Modern tech stack
Improved performance and scalability
Streamline customizations
Simplify external integrations
Easy installation and upgrades
High code quality and tests
![Page 4: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/4.jpg)
© 2013
Magento 2 Goals
While Magento has always had a modular architecture, the current module boundaries are not always ideal….
![Page 5: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/5.jpg)
© 2013
![Page 6: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/6.jpg)
© 2013
Modularity Examples. Configuration
Problem: Store Config Model
Coupling on Store (Core module)
![Page 7: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/7.jpg)
© 2013
Modularity Configuration. Solution
![Page 8: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/8.jpg)
© 2013
Modularity Example. Shipping carriers
Problem: All shipping carriers are delivered in one module
![Page 9: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/9.jpg)
© 2013
Modularity Shipping carriers. Solution
![Page 10: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/10.jpg)
© 2013
Magento 2 Decoupling
![Page 11: Modular development in Magento 2](https://reader030.fdocuments.us/reader030/viewer/2022020119/5871af301a28abda6a8b63e3/html5/thumbnails/11.jpg)
© 2013
Last notice
Don’t forget Unit test your code, because the essence of Unit test to reveal coupling