src/Http/ContentNegotiation/MediaTypeFormatterMatcher.php
public function getBestResponseMediaTypeFormatterMatch(
        string $type,
        array $formatters,
        array $acceptMediaTypeHeaders
    ): ?MediaTypeFormatterMatch {
        return $this->getBestMediaTypeFormatterMatch(
            $type,
            $formatters,
            $acceptMediaTypeHeaders,
            self::FORMATTER_TYPE_OUTPUT
        );
    }
public function getBestResponseMediaTypeFormatterMatch(
        string $type,
        array $formatters,
        array $acceptMediaTypeHeaders
    ): ?MediaTypeFormatterMatch {
        return $this->getBestMediaTypeFormatterMatch(
            $type,
            $formatters,
            $acceptMediaTypeHeaders,
            self::FORMATTER_TYPE_OUTPUT
        );
    }
Gets the best media type formatter match for requests

@param string $type The type that will be written by the formatter
@param IMediaTypeFormatter[] $formatters The list of formatters to match against
@param AcceptMediaTypeHeaderValue[] $acceptMediaTypeHeaders The Accept type headers to match against
@return MediaTypeFormatterMatch|null The media type formatter match if there was one, otherwise null