schmittjoh/JMSSecurityExtraBundle — pull request #115 by radmar (2013-02-12 13:17:07+00:00)
Title: Annotations : array of roles and permissions

```php
namespace Acme\DemoBundle;

class FooRole
{
const EDIT = 'ROLE_ACME_DEMO_FOO_EDIT';
const DELETE = 'ROLE_ACME_DEMO_FOO_DELETE';
}
```

```php
namespace Acme\DemoBundle\Controller;
use Acme\DemoBundle\FooRole;

class FooController
{

/**
* @Secure(roles={FooRole::EDIT, 'ROLE_ADMIN'})
*/
public function editAction()
{
//...
}

/**
* @Secure(roles={FooRole::DELETE, 'ROLE_ADMIN'})
*/
public function deleteAction()
{
//...
}

}
```