title: Symfony 2: route defined in annotation not visible from by Twig's path()
body: <p>I encountered a problem, have the following:</p>
  
  <p>DefaultController with a simple action:</p>
  
  <pre><code>/**
   * @Route("/register")
   * @Template
   */
  public function indexAction() {
      $oForm = $this-&gt;createForm(new RegisterType());
      return array(
          'form'  =&gt; $oForm-&gt;createView()
      );
  }
  </code></pre>
  
  <p>In my twig template I try to use:</p>
  
  <pre><code>&lt;form action="{{ path('register') }}" method="post"&gt;&lt;/form&gt;
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>An exception has been thrown during the rendering of a template ("Route "register" does not exist.") in EBTSCustomerBundle:Default:index.html.twig at line 2.
  </code></pre>
  
  <p>When I explicitely define a "register" route in app/config/routing.yml:</p>
  
  <pre><code>register:
    pattern:  /register
    defaults: { _controller: EBTSCustomerBundle:Controller:Default:index }
  </code></pre>
  
  <p>Then it works fine. Can't find any reasonable docs about it, I thought that routes defined via annotations should be visible in the whole application.</p>
  
  <p>Any ideas guys?</p>