Preference a DTO interface to a model in Magento
Set a Magento 2 DTO interface preference in etc/di.xml to inject PostInterface as the Post model.
Lesson Content
While we created a DTO object, and then implemented it into our model, we still need to set this model up as a preference for this interface. If someone wishes to reference this PostInterface with d...
Join the discussion!
Comments
Want to comment on this lesson?
Enroll in this course to leave comments.