title: Get symfony route from controller action annotations
body: <p>I have a controller action like this:</p>
  
  <pre><code>/**
   * @Route("/post/delete/{id}", name="delete_post_modal")
   */
  public function deleteAction(Post $post)
  {
      // ...
  }
  </code></pre>
  
  <p>The annotation <code>@Route</code> tells symfony to execute method <code>deleteAction</code> when route matches <code>delete_post_modal</code>. 
  All of this works fine.</p>
  
  <p>Question: Is there a way to reverse this functionality and get the route name from method name? </p>
  
  <p>From the example above:</p>
  
  <ul>
  <li>I have: <code>PostController::deleteAction()</code> (or <code>self::deleteAction</code>)</li>
  <li>I need to get: <code>delete_post_modal</code></li>
  </ul>
  
  <p>thanks!</p>