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