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 Application\Api\Server;
use Ecodev\Felix\Handler\GraphQLHandler;
use Psr\Container\ContainerInterface;
class GraphQLFactory
{
public function __invoke(ContainerInterface $container)
$config = $container->get('config');
$site = $container->get('site');
$server = new Server($config['debug'], $site);
return new GraphQLHandler($server);
}