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);
    }
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);
    }
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 ) ; }
Return an instance of the ServerRequestInterface.

@throws ContainerExceptionInterface
@throws InvalidArgumentException
@throws NotFoundExceptionInterface
Return an instance of the ServerRequestInterface .