title: Custom message for @Security annotation
body: <p>I'm trying to use <code>@Security</code> annotations for my routes. Like this:</p>
  
  <pre><code>/**
   * @return Response
   * @Route("/action")
   * @Security("has_role('ROLE_USER')")
   * @Template()
   */
  public function someAction()
  {
      return array();
  }
  </code></pre>
  
  <p>When the security restriction fires an exception, I get the message <code>Expression "has_role('ROLE_USER')" denied access</code>.</p>
  
  <p>This is not acceptable to be shown to the end user, so I'm trying to find a way to customize the message for annotation.</p>
  
  <p>Simple workaround is to not to use <code>@Secutity</code> annotations and write code like these:</p>
  
  <pre><code>/**
   * @return Response
   * @Route("/action")
   * 
   * @Template()
   */
  public function someAction()
  {
      if (!$this-&gt;get('security.context')-&gt;isGranted('ROLE_USER')) {
          throw new AccessDeniedException('You have to be logged in in order to use this feature');
      }
  
      return array();
  }
  </code></pre>
  
  <p>But this is less convenient and less readable.</p>
  
  <p>Is it possible to write custom message to <code>@Security</code> annotations?</p>