PHP Class Sulu\Bundle\SecurityBundle\Controller\RoleSettingController

Inheritance: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface
Mostra file Open project: sulu/sulu

Public Methods

Method Description
getAction ( integer $roleId, string $key ) : Response Returns value for given role-setting.
putAction ( Request $request, integer $roleId, string $key ) : Response Save role-setting with value from request body.

Method Details

getAction() public method

Returns value for given role-setting.
public getAction ( integer $roleId, string $key ) : Response
$roleId integer
$key string
return Symfony\Component\HttpFoundation\Response

putAction() public method

Save role-setting with value from request body.
public putAction ( Request $request, integer $roleId, string $key ) : Response
$request Symfony\Component\HttpFoundation\Request
$roleId integer
$key string
return Symfony\Component\HttpFoundation\Response