title: PHP Symfony Semantical Error
body: <p>I created src/Controller file named as sampleController.php:</p>
  
  <pre><code>&lt;?php
  namespace App\Controller;
  use Symfony\Component\HttpFoundation\Response;
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  
  class sampleController extends Controller
  {
      /**
       * @Route("/hello")
       */
      public function number()
      {
          $number = mt_rand(0, 100);
  
          return $this-&gt;render('sample/number.html.twig', array(
              'number' =&gt; $number,
          ));
      }
  }
  </code></pre>
  
  <p>My twig file is this:</p>
  
  <pre><code>&lt;h1&gt;Number is: {{ number }}&lt;/h1&gt;
  </code></pre>
  
  <p>And routes.yaml is this:</p>
  
  <pre><code>sample_asd:
    path: /hello
    controller: App\Controller\sampleController::number
  </code></pre>
  
  <p>I've installed annotations and --dev profiler. But when I navigate to <a href="http://localhost:8000/hello" rel="nofollow noreferrer">http://localhost:8000/hello</a> it gives:</p>
  
  <p>HTTP 500 Internal Server Error
  [Semantical Error] The annotation "@Route" in method App\Controller\sampleController::number() was never imported. Did you maybe forget to add a "use" statement for this annotation? in C:\xampp\htdocs\Projects\symfony_learning\config/routes../../src/Controller/ (which is being imported from "C:\xampp\htdocs\Projects\symfony_learning\config/routes/annotations.yaml"). Make sure annotations are installed and enabled.</p>
  
  <p>I didn't understand what is the problem.</p>
  
  <p>Thanks</p>