for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Antidot\React\PSR15\Container;
use Antidot\React\PSR15\Middleware\ErrorMiddleware;
use Psr\Container\ContainerInterface;
class ErrorMiddlewareFactory
{
public function __invoke(ContainerInterface $container): ErrorMiddleware
return new ErrorMiddleware($container->get('config')['debug']);
}