Neos\Flow\Http\Request::mediaRangeMatches PHP Method

mediaRangeMatches() public static method

Checks if the given media range and the media type match.
See also: MediaTypes::mediaRangeMatches()
Deprecation: since Flow 2.1. Use \Neos\Utility\MediaTypes::mediaRangeMatches() instead
public static mediaRangeMatches ( string $mediaRange, string $mediaType ) : boolean
$mediaRange string The media range, for example "text/*"
$mediaType string The media type to match against, for example "text/html"
return boolean TRUE if both match, FALSE if they don't match or either of them is invalid
    public static function mediaRangeMatches($mediaRange, $mediaType)
    {
        return MediaTypes::mediaRangeMatches($mediaRange, $mediaType);
    }