Fix for Symfony Rest API

When using symfony 2 as api server, the parameters were empty.
Merge pull request #4 from ajanssen/patch-1

Fix for Symfony Rest API