for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace T4web\Migrations\Controller;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;
use T4web\Migrations\Service\Generator;
class GenerateControllerFactory implements FactoryInterface
{
public function createService(ServiceLocatorInterface $serviceLocator)
$serviceLocator = $serviceLocator->getServiceLocator();
return new GenerateController($serviceLocator->get(Generator::class));
}