Define hard dependencies with Composer in Magento
Learn how to define hard dependencies in Composer to ensure required packages are installed for your module to function.
Lesson Content
Our code now depends on the Magento Catalog module, since we are importing files directly from it in our ViewModel. Because of this, we should classify the Catalog module as a hard-dependency. We’ll d...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.