symfony/symfony — pull request #10225 by jbinfo (2014-02-10 10:30:48+00:00)
Title: Add has_any_roles expression

| Q | A |
| ---------------- |:-------------:|
| Bug fix? | no |
| New feature? | yes |
| BC breaks? | no |
| Tests pass? | yes |
| License | MIT |
| Doc PR	| n/a |

This PR is about to check if the current user has one of the specified roles, example:

```php
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;

class PostController extends Controller
{
/**
* @Security("has_any_roles(['ROLE_FOO', 'ROLE_BAR'])")
*/
public function indexAction()
{
// ...
}
}
```