for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace App\Handler;
use Psr\Container\ContainerInterface;
use Psr\Http\Server\RequestHandlerInterface;
use Zend\Expressive\Twig\TwigRenderer;
class HomePageHandlerFactory
{
public function __invoke(ContainerInterface $container): RequestHandlerInterface
$template = $container->get(TwigRenderer::class);
return new HomePageHandler($template);
}