Fix for Symfony Rest API

When using symfony 2 rest api, the parameters bags are empty. When using Custom request it isn't.