FriendsOfSymfony/FOSRestBundle — pull request #367 by anagorski (2013-01-25 14:22:33+00:00)
Title: param fetcher groups

This change allow use param groups in QueryParam.

Example:
@QueryParam(name="field_name", groups="group1", default="default value")
or array groups
@QueryParam(name="field_name", groups="group1|group2", default="default value")

In the controller or eventListener you can set groups:

$paramFetcher->setGroups(array('group1'))
or
$paramFetcher->setGroups(array('group1', ' group2'))

If you set groups in controller who doesn't belong in QueryParam group,
method $paramFetcher->get('field_name') return default value