I am using FOSRestBundle in order to implement an API. I would like to parse HTTP headers that are sent to me from the client.
How can I access them ?
You can get headers from Request object in your controller methods.
use Symfony\Component\HttpFoundation\Request;
public function someAction(Request $request){
$request->headers //get headers
}