Via HTTP PUT I send the following json to my webservice, verified by return new Response($request->getContent());:
{"company_id":13}
In my webservice I am trying to retrieve the data by its tag from the request:
var_dump("COMPANY ID ".$request->request->getInt('company_id')); //returns 0
I've also tried:
//the 2 below should only work on GET from what I read
var_dump("COMPANY ID ".$request->get('company_id')); //returns nothing
var_dump("COMPANY ID ".$request->query->getInt('company_id')); //returns 0
The symfony2 book only mentions how to get data from GET and POST, how do I retrieve data from a PUT request?