PHP Class Sulu\Bundle\MediaBundle\Controller\FormatController

Inheritance: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface, use trait Sulu\Component\Rest\RequestParametersTrait
Exibir arquivo Open project: sulu/sulu

Public Methods

Method Description
cgetAction ( $id, Request $request ) : Response Returns all format resources.
putAction ( integer $id, string $key, Request $request ) : Response Edits a format resource.

Private Methods

Method Description
getFormatManager ( ) : Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface
getFormatOptionsManager ( ) : Sulu\Bundle\MediaBundle\Media\FormatOptions\FormatOptionsManagerInterface

Method Details

cgetAction() public method

Returns all format resources.
public cgetAction ( $id, Request $request ) : Response
$id
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response

putAction() public method

Edits a format resource.
public putAction ( integer $id, string $key, Request $request ) : Response
$id integer
$key string
$request Symfony\Component\HttpFoundation\Request
return Symfony\Component\HttpFoundation\Response