for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ZfPhinx\Controller;
use Interop\Container\ContainerInterface;
use ZfPhinx\Service\ZfPhinxService;
/**
* Phinx controller factory
*/
class PhinxControllerFactory
{
* @param ContainerInterface $container
* @return PhinxController
public function __invoke(ContainerInterface $container)
return new PhinxController(
$this->getZfPhinxService($container)
);
}
* Gets ZF Phinx Service
*
* @return ZfPhinxService
private function getZfPhinxService(ContainerInterface $container)
return $container->get(ZfPhinxService::class);