Skip to main content

You should not use the ObjectManager.

Collect your dependencies via _constructor.

In case your interface still won't be loaded, check your di.xml and validate that a preference is available.

David Lambauer
  • 1.1k
  • 2
  • 9
  • 25