title: Routing not working in Symfony 3.4
body: <p>I have created a new Symfony 3.4 project using: </p>
  
  <pre><code>composer create-project symfony/skeleton my-project
  </code></pre>
  
  <p>After that I added the following components: </p>
  
  <pre><code>composer require twig
  composer require annotations
  composer require maker
  </code></pre>
  
  <p>And created a Controller:</p>
  
  <pre><code>php bin/console make:controller
  </code></pre>
  
  <p>I added an action with a route "legal". Here is the DefaultController: </p>
  
  <pre><code>&lt;?php
  
  namespace App\Controller;
  
  use Symfony\Component\Routing\Annotation\Route;
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  
  class DefaultController extends Controller
  {
      /**
       * @Route("/", name="homepage")
       */
      public function index()
      {
          return $this-&gt;render('index.html.twig', [
              'controller_name' =&gt; 'DefaultController',
          ]);
      }
  
      /**
       * @Route("/legal", name="legal")
       */
      public function legal()
      {
          return $this-&gt;render('legal.html.twig', []);
      }
  }
  </code></pre>
  
  <p>File config/routes.yaml:</p>
  
  <pre><code>#index:
  #    path: /
  #    defaults: { _controller: 'App\Controller\DefaultController::index' }
  </code></pre>
  
  <p>And config/routes/annotations.yaml: </p>
  
  <pre><code>controllers:
      resource: ../../src/Controller/
      type: annotation
  </code></pre>
  
  <p>When I access the homepage, no problem, the page is showing. But when I try the /legal page, I have a 404 : </p>
  
  <blockquote>
    <p>Not Found - The requested URL /legal was not found on this server.</p>
  </blockquote>
  
  <p><code>php bin/console debug:router</code> shows the expected: </p>
  
  <pre><code> ------------------ -------- -------- ------ -------------------------- 
    Name               Method   Scheme   Host   Path                      
   ------------------ -------- -------- ------ -------------------------- 
    homepage           ANY      ANY      ANY    /                         
    legal              ANY      ANY      ANY    /legal                    
    _twig_error_test   ANY      ANY      ANY    /_error/{code}.{_format}  
   ------------------ -------- -------- ------ -------------------------- 
  </code></pre>
  
  <p>I cleared the cache, with the console command and by removing the content of the var/cache directory. But still the 404. </p>
  
  <p>I'm new to 3.4. Any ideas ? Thanks...</p>