private static function request(ContainerInterface $container): ServerRequestInterface
    {
        if (!$container->has(ServerRequestInterface::class)) {
            throw new InvalidArgumentException('Moon received an invalid request instance from the container');
        }

        return $container->get(ServerRequestInterface::class);
    }