Hi all,
I am quite new to Laminas/Mezzio in general so apologies if the post isn’t as clear as it should be (and please point out anything that I have missed).
I have an API built using PHP 7.3.6 using the Mezzio 3.0.1 framework (this uses a number of laminas dependencies such as the laminas-servicemanager).
I am using a cURL POST request below, however when I run this in the terminal it gives me the following errors in the ‘/tmp/logs’
ERR (3): Received an uncaught exception {"exception":"Error: Class 'ProductApi\\RequestHandler\\Configurator\\ConfiguratorCreation' not found in /data/app/vendor/laminas/laminas-servicemanager/src/AbstractFactory/ConfigAbstractFactory.php:78\nStack trace:\n#0 /data/app/vendor/laminas/laminas-servicemanager/src/ServiceManager.php(645): Laminas\\ServiceManager\\AbstractFactory\\ConfigAbstractFactory->__invoke(Object(Laminas\\ServiceManager\\ServiceManager), 'ProductApi...', NULL)
This is my abstract_config_factory.config.php file for the module - any tips on how to debug this
<?php
declare(strict_types=1);
namespace ProductApi;
use Acme\Sentry\ZendLog\Writers\SentryWriter;
use Psr\Log\LoggerInterface;
return [
RequestHandler\Index::class => [
\Mezzio\Helper\UrlHelper::class,
],
SentryWriter::class => [
'SentryClient',
],
Dal\Configurator\ConfiguratorCreation::class => [
'db_configurators',
],
Dal\Configurator\ConfiguratorGet::class => [
'db_configurators',
],
Configurator\ConfiguratorCreation::class => [
Dal\Configurator\ConfiguratorCreation::class,
Dal\Configurator\ConfiguratorGet::class,
],
RequestHandler\Configurator\ConfiguratorCreation::class => [
Configurator\ConfiguratorCreation::class,
LoggerInterface::class,
]
];