title: Cannot load resource "." after writing in routing.yml
body: <p>I made a command that automatically writes in routing.yml. 
  My problem is that when I try to browse one of the routes  </p>
  
  <pre><code>api:
      resource: "."
      type:     "api"
      prefix: /api
  </code></pre>
  
  <p>I get this exception  </p>
  
  <blockquote>
    <p>Cannot load resource "."</p>
  </blockquote>
  
  <p>I tried to add a cache:clear to my command but I get the same exception.</p>