title: Symfony @Security Annotation with a custom Voter
body: <p>I've written a custom voter to check if a user is the owner of a book, that he's trying to edit.
  Therefore i'm using the "@Security" annotation to secure the Controller:</p>
  
  <pre><code>@Security("is_granted('BookVoter::ATTRIBUTE_OWNER', book)")
  </code></pre>
  
  <p>This is what I would like to have the @Security annotation look like, but it is only working when I write the following:</p>
  
  <pre><code>@Security("is_granted('OWNER', book)")
  </code></pre>
  
  <p>I don't want to "hardcode" the 'OWNER' string, it is a constant within my BookVoter.
  Any ideas how to achieve this?</p>
  
  <p>Regards.</p>