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

@param string $type The type that will be read by the formatter
@param IMediaTypeFormatter[] $formatters The list of formatters to match against
@param ContentTypeHeaderValue $contentTypeHeaderValue The Content-Type header to match against
@return MediaTypeFormatterMatch|null The media type formatter match if there was one, otherwise null