src/main/php/routing/Routing.php
private function supportedMimeTypes(Route $route = null): SupportedMimeTypes
    {
        if ($this->disableContentNegotation) {
            return SupportedMimeTypes::createWithDisabledContentNegotation();
        }

        if (null !== $route) {
            return $route->supportedMimeTypes(
                    $this->mimeTypes,
                    $this->mimeTypeClasses
            );
        }

        return new SupportedMimeTypes($this->mimeTypes, $this->mimeTypeClasses);
    }
private function supportedMimeTypes(Route $route = null): SupportedMimeTypes
    {
        if ($this->disableContentNegotation) {
            return SupportedMimeTypes::createWithDisabledContentNegotation();
        }

        if (null !== $route) {
            return $route->supportedMimeTypes(
                    $this->mimeTypes,
                    $this->mimeTypeClasses
            );
        }

        return new SupportedMimeTypes($this->mimeTypes, $this->mimeTypeClasses);
    }
private function supportedMimeTypes ( Route $ route = null ) : SupportedMimeTypes { if ( $ this -> disableContentNegotation ) { return SupportedMimeTypes :: createWithDisabledContentNegotation ( ) ; } if ( null !== $ route ) { return $ route -> supportedMimeTypes ( $ this -> mimeTypes , $ this -> mimeTypeClasses ) ; } return new SupportedMimeTypes ( $ this -> mimeTypes , $ this -> mimeTypeClasses ) ; }
retrieves list of supported mime types

@param   \stubbles\webapp\routing\Route  $route
@return  \stubbles\webapp\routing\SupportedMimeTypes
retrieves list of supported mime types