PHP Class Sulu\Bundle\MediaBundle\Controller\MediaPreviewController

Inheritance: extends AbstractMediaController, implements FOS\RestBundle\Routing\ClassResourceInterface
Show file Open project: sulu/sulu

Public Methods

Method Description
deleteAction ( $id, Request $request ) : Response Removes current preview image and sets default video thumbnail.
postAction ( integer $id, Request $request ) : Response Creates a new preview image and saves it to the provided media.

Method Details

deleteAction() public method

Removes current preview image and sets default video thumbnail.
public deleteAction ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

postAction() public method

Creates a new preview image and saves it to the provided media.
public postAction ( integer $id, Request $request ) : Response
$id integer
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response