private static function matchableRequest(ContainerInterface $container): MatchableRequestInterface
    {
        if (!$container->has(MatchableRequestInterface::class)) {
            return new MatchableRequest($container->get(ServerRequestInterface::class));
        }

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