src/main/php/routing/Route.php
public function supportedMimeTypes(
            array $globalMimeTypes = [],
            array $globalClasses = []
    ): SupportedMimeTypes {
        if ($this->disableContentNegotation || $this->routingAnnotations()->isContentNegotiationDisabled()) {
            return SupportedMimeTypes::createWithDisabledContentNegotation();
        }


        return new SupportedMimeTypes(
                array_merge(
                        $this->routingAnnotations()->mimeTypes(),
                        $this->mimeTypes,
                        $globalMimeTypes
                ),
                array_merge(
                        $globalClasses,
                        $this->routingAnnotations()->mimeTypeClasses(),
                        $this->mimeTypeClasses
                )
        );
    }
public function supportedMimeTypes(
            array $globalMimeTypes = [],
            array $globalClasses = []
    ): SupportedMimeTypes {
        if ($this->disableContentNegotation || $this->routingAnnotations()->isContentNegotiationDisabled()) {
            return SupportedMimeTypes::createWithDisabledContentNegotation();
        }


        return new SupportedMimeTypes(
                array_merge(
                        $this->routingAnnotations()->mimeTypes(),
                        $this->mimeTypes,
                        $globalMimeTypes
                ),
                array_merge(
                        $globalClasses,
                        $this->routingAnnotations()->mimeTypeClasses(),
                        $this->mimeTypeClasses
                )
        );
    }
public function supportedMimeTypes ( array $ globalMimeTypes = [ ] , array $ globalClasses = [ ] ) : SupportedMimeTypes { if ( $ this -> disableContentNegotation || $ this -> routingAnnotations ( ) -> isContentNegotiationDisabled ( ) ) { return SupportedMimeTypes :: createWithDisabledContentNegotation ( ) ; } return new SupportedMimeTypes ( array_merge ( $ this -> routingAnnotations ( ) -> mimeTypes ( ) , $ this -> mimeTypes , $ globalMimeTypes ) , array_merge ( $ globalClasses , $ this -> routingAnnotations ( ) -> mimeTypeClasses ( ) , $ this -> mimeTypeClasses ) ) ; }
returns list of mime types supported by this route

@param   string[]  $globalMimeTypes  optional list of globally supported mime types
@param   string[]  $globalClasses    optional list of globally defined mime type classes
@return  \stubbles\webapp\routing\SupportedMimeTypes
returns list of mime types supported by this route