for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Application\Handler;
use Doctrine\ORM\EntityManager;
use Interop\Container\ContainerInterface;
use Mezzio\Template\TemplateRendererInterface;
class DatatransFactory
{
public function __invoke(ContainerInterface $container)
$entityManager = $container->get(EntityManager::class);
$rendered = $container->get(TemplateRendererInterface::class);
$config = $container->get('config');
return new DatatransHandler($entityManager, $rendered, $config['datatrans']);
}