src/main/php/routing/SupportedMimeTypes.php
public static function provideDefaultClassFor(string $mimeType): bool
    {
        if (in_array($mimeType, array_keys(self::$supported))) {
            return true;
        }

        if (class_exists('stubbles\xml\serializer\XmlSerializerFacade') && in_array($mimeType, array_keys(self::$xml))) {
            return true;
        }

        if (class_exists('stubbles\img\Image') && in_array($mimeType, array_keys(self::$image))) {
            return true;
        }

        return false;
    }
public static function provideDefaultClassFor(string $mimeType): bool
    {
        if (in_array($mimeType, array_keys(self::$supported))) {
            return true;
        }

        if (class_exists('stubbles\xml\serializer\XmlSerializerFacade') && in_array($mimeType, array_keys(self::$xml))) {
            return true;
        }

        if (class_exists('stubbles\img\Image') && in_array($mimeType, array_keys(self::$image))) {
            return true;
        }

        return false;
    }
public static function provideDefaultClassFor ( string $ mimeType ) : bool { if ( in_array ( $ mimeType , array_keys ( self :: $ supported ) ) ) { return true ; } if ( class_exists ( 'stubbles\xml\serializer\XmlSerializerFacade' ) && in_array ( $ mimeType , array_keys ( self :: $ xml ) ) ) { return true ; } if ( class_exists ( 'stubbles\img\Image' ) && in_array ( $ mimeType , array_keys ( self :: $ image ) ) ) { return true ; } return false ; }
checks if a default class is known for the given mime type

@param   string  $mimeType
@return  bool
@since   5.0.0
checks if a default class is known for the given mime type