Method | Description | |
---|---|---|
__construct ( Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface $mediaRepository, Sulu\Bundle\MediaBundle\Media\FormatCache\FormatCacheInterface $formatCache, Sulu\Bundle\MediaBundle\Media\ImageConverter\ImageConverterInterface $converter, string $saveImage, array $responseHeaders, array $formats, array $supportedMimeTypes ) | ||
clearCache ( ) | ||
getFormatDefinition ( $formatKey, $locale = null, array $formatOptions = [] ) | ||
getFormatDefinitions ( $locale = null, array $formatOptions = [] ) | ||
getFormats ( $id, $fileName, $storageOptions, $version, $subVersion, $mimeType ) | ||
getMediaProperties ( $url ) | ||
purge ( $idMedia, $fileName, $options ) | ||
returnImage ( $id, $formatKey ) |
Method | Description | |
---|---|---|
getResponseHeaders ( string $mimeType = '', boolean $setExpireHeaders = false ) : array | ||
replaceExtension ( string $filename, $mimeType ) : string |
Method | Description | |
---|---|---|
checkMimeTypeSupported ( $mimeType ) : boolean | Returns true if the given mime type is supported, otherwise false. | |
getLatestFileVersion ( Sulu\Bundle\MediaBundle\Entity\MediaInterface $media ) : |
public __construct ( Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface $mediaRepository, Sulu\Bundle\MediaBundle\Media\FormatCache\FormatCacheInterface $formatCache, Sulu\Bundle\MediaBundle\Media\ImageConverter\ImageConverterInterface $converter, string $saveImage, array $responseHeaders, array $formats, array $supportedMimeTypes ) | ||
$mediaRepository | Sulu\Bundle\MediaBundle\Entity\MediaRepositoryInterface | |
$formatCache | Sulu\Bundle\MediaBundle\Media\FormatCache\FormatCacheInterface | |
$converter | Sulu\Bundle\MediaBundle\Media\ImageConverter\ImageConverterInterface | |
$saveImage | string | |
$responseHeaders | array | |
$formats | array | |
$supportedMimeTypes | array |
public getFormatDefinition ( $formatKey, $locale = null, array $formatOptions = [] ) | ||
$formatOptions | array |
public getFormatDefinitions ( $locale = null, array $formatOptions = [] ) | ||
$formatOptions | array |
public getFormats ( $id, $fileName, $storageOptions, $version, $subVersion, $mimeType ) |
protected replaceExtension ( string $filename, $mimeType ) : string | ||
$filename | string | |
return | string |