1

I am implementing simple service contracts. don't have much knowledge about service contracts following example from here

How to implement service contract for a custom module in Magento 2?

i am getting error of

"Class Assign\RestService\Model\ResourceModel\Hamburger\CollectionFactory does not exist"

Sukumar Gorai
  • 10,823
  • 4
  • 19
  • 46
Asad Ullah
  • 1,461
  • 9
  • 24

1 Answers1

0

Use this GitHub module code maybe it will help you to solve your issue

Example1: https://github.com/astorm/service-contract-example

Your error "Class Assign\RestService\Model\ResourceModel\Hamburger\CollectionFactory does not exist" says you missed to define or include Assign\RestService\Model\ResourceModel\Hamburger\CollectionFactory class

Just remove your whole code related to the service contract and use above module of Alan Storm

OR

Example2: https://github.com/magentow/ServiceContract

Example3: https://github.com/navarr/m2-module-regionlookup

sphere
  • 75
  • 6