Video Lesson: Preference a DTO interface to a model in Magento

Preference a DTO interface to a model in Magento

Enroll to watch this lesson

Black Friday The whole University for $299/yr.

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...

Premium content

Enroll to unlock the full content and all course materials.

Black Friday

The whole University for $299/yr.

Get the deal →
Maggie

Hey, I'm Maggie! 👋

Ask me anything.

Black Friday

The whole University for $299/yr.

Every course, Maggie & Campus. The lowest price ever.

Get the deal →
Comments

Join the discussion!

Notes

Keep track of what you learn!