for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Web\Factory\Action;
use Interop\Container\ContainerInterface;
use Page\Service\PageService;
use Web\Action\HomeAction;
use Zend\Expressive\Template\TemplateRendererInterface;
/**
* Class HomeActionFactory.
*/
class HomeActionFactory
{
* @param ContainerInterface $container
*
* @return HomeAction
public function __invoke(ContainerInterface $container): HomeAction
return new HomeAction(
$container->get(TemplateRendererInterface::class),
$container->get(PageService::class)
);
}