Hi I use FOSRestBundle to create my API. I have to send data as ARRAY like:
"sender"=>array("name"=>"adm","city"=>"Rz")
and more.
I read documentation and I didn't know how to recive data array!
My function:
/**
* @QueryParam(name="recipient", description="Page of the overview.")
* @QueryParam(name="sender", description="Page of the overview.")
*
*/
public function putDispatchAction(ParamFetcher $params)
{
// $params = $request;
$rec = $params->get('recipient');
$sender = $params->get('sender');
I try to recive parameter sender which is array() But how?
I use symfony 2.8