PHP Class Sulu\Bundle\MediaBundle\Controller\MediaStreamController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
Datei anzeigen Open project: sulu/sulu

Protected Properties

Property Type Description
$cacheManager Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface
$mediaManager Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface
$storage Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface

Public Methods

Method Description
downloadAction ( Request $request, integer $id ) : BinaryFileResponse
getImageAction ( Request $request ) : Response

Protected Methods

Method Description
getCacheManager ( ) : Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface getMediaManager.
getFileResponse ( FileVersion $fileVersion, string $locale, string $dispositionType = ResponseHeaderBag::DISPOSITION_ATTACHMENT ) : BinaryFileResponse
getFileVersion ( integer $id, integer $version ) : null | FileVersion
getMediaManager ( ) : Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface getMediaManager.
getStorage ( ) : Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface getStorage.

Method Details

downloadAction() public method

public downloadAction ( Request $request, integer $id ) : BinaryFileResponse
$request Symfony\Component\HttpFoundation\Request
$id integer
return Symfony\Component\HttpFoundation\BinaryFileResponse

getCacheManager() protected method

getMediaManager.
protected getCacheManager ( ) : Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface
return Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface

getFileResponse() protected method

protected getFileResponse ( FileVersion $fileVersion, string $locale, string $dispositionType = ResponseHeaderBag::DISPOSITION_ATTACHMENT ) : BinaryFileResponse
$fileVersion Sulu\Bundle\MediaBundle\Entity\FileVersion
$locale string
$dispositionType string
return Symfony\Component\HttpFoundation\BinaryFileResponse

getFileVersion() protected method

protected getFileVersion ( integer $id, integer $version ) : null | FileVersion
$id integer
$version integer
return null | Sulu\Bundle\MediaBundle\Entity\FileVersion

getImageAction() public method

public getImageAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

getMediaManager() protected method

getMediaManager.
protected getMediaManager ( ) : Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface
return Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface

getStorage() protected method

getStorage.
protected getStorage ( ) : Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface
return Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface

Property Details

$cacheManager protected_oe property

protected FormatManagerInterface,Sulu\Bundle\MediaBundle\Media\FormatManager $cacheManager
return Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface

$mediaManager protected_oe property

protected MediaManagerInterface,Sulu\Bundle\MediaBundle\Media\Manager $mediaManager
return Sulu\Bundle\MediaBundle\Media\Manager\MediaManagerInterface

$storage protected_oe property

protected StorageInterface,Sulu\Bundle\MediaBundle\Media\Storage $storage
return Sulu\Bundle\MediaBundle\Media\Storage\StorageInterface