for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace InvoiceNinjaModule\Service;
use Interop\Container\ContainerInterface;
use InvoiceNinjaModule\Service\Interfaces\ProductManagerInterface;
use Laminas\ServiceManager\Factory\FactoryInterface;
use Psr\Container\ContainerExceptionInterface;
use Psr\Container\NotFoundExceptionInterface;
/**
* Class ProductManagerFactory
*/
class ProductManagerFactory implements FactoryInterface
{
* @param ContainerInterface $container
* @param string $requestedName
* @param array|null $options
*
* @return ProductManager
* @throws ContainerExceptionInterface
* @throws NotFoundExceptionInterface
public function __invoke(ContainerInterface $container, $requestedName, array $options = null) : ProductManagerInterface
return new ProductManager($container->get(ObjectService::class));
}