I created a new route that is called via the POST method in a project where we use Zend Expressive and I went to test it using Insomnia, but the answer the server gives me is the following:

"Service with name Domain\v1\SmartLocker\Action\DeliverPackage could not be created. Reason: "

This is the structure of my folder where my Action and also my Service are:

enter image description here

This is the getRoutes() method located inside my ConfigProvider.php:

enter image description here

And this is the error:

enter image description here

Things I've tried to do but didn't work:

  1. Delete data/config-cache.php
  2. Change data/config-cache.php permission
  3. Change route name and files (I don't know if this makes sense)

Has anyone been through something like this and can you help please?

0

There are 0 best solutions below