title: Cannot declare class because the name is already in use
body: <p>I am learning symfony framework and during the seperation of concern part <a href="https://symfony.com/doc/current/create_framework/separation_of_concerns.html" rel="nofollow noreferrer">https://symfony.com/doc/current/create_framework/separation_of_concerns.html</a> the output shows</p>
  <blockquote>
  <p>Fatal error: Cannot declare class Calendar\Controller\LeapYearController, because the name is already in use in /home/developer/shadowmap/abhed-workspace/training/php-training/my-framework/src/Calender/Controller/LeapYearController.php on line 9</p>
  </blockquote>
  <p>I tried to navigate the error and the problem is in controllerResolver (vendor/symfony/httpKernel/controller/ControllerResolver.php)</p>
  <pre><code> protected function instantiateController(string $class)
  {
      return new $class();
  }
  </code></pre>
  <p>that means this class has initialized earlier.</p>
  <p>Do anyone faced this issue or just me ? Need to tag more images (the link provided has all the code) ?</p>