title: The autoloader expected class [...] to be defined in file
body: <p>I'm new to Symfony 3. I try to resolve a problem with my two controllers.
  When I execute the indexAction function I've got this error :</p>
  
  <blockquote>
    <p>The autoloader expected class "Arcturus\GeomancieBundle\Controller\TirageController" to be defined in file "/Applications/MAMP/htdocs/geomancie2/geomancie/vendor/composer/../../src/Arcturus/GeomancieBundle/Controller/TirageController.php". The file was found but the class was not in it, the class name or namespace probably has a typo.</p>
  </blockquote>
  
  <p>I've found that can be a typo in a class...but did'nt find anything wrong.</p>
  
  <p>Here's my two controllers :</p>
  
  <p>DefaultController.php</p>
  
  <pre><code>&lt;?php
  
  namespace Arcturus\GeomancieBundle\Controller;
  namespace Arcturus\GeomancieBundle\Entity;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Symfony\Component\Form;
  use Symfony\Component\HttpFoundation\Request;
  use Arcturus\GeomancieBundle\Entity;
  
  class DefaultController extends Controller
  {
      public function indexAction(Request $request) {
          $tirage = new Tirage();
          $formTirage = $this-&gt;createFormBuilder($tirage)-&gt;getForm();
  
          // Si le formulaire a été soumis
  
          $formTirage-&gt;handleRequest($request);
  
          if ($formTirage-&gt;isSubmitted() &amp;&amp; $formTirage-&gt;isValid()) {
              $tirage = $formTirage-&gt;all();
  
              return $this-&gt;redirectToRoute('arcturus_geomancie_tirage', $tirage);
          }
  
          // Si le formulaire n'a pas été soumis
  
          return $this-&gt;render('ArcturusGeomancieBundle:Default:index.html.twig', array(
             'form' =&gt; $formTirage-&gt;createView(),
          ));
      }
  }
  </code></pre>
  
  <p>TirageController.php</p>
  
  <pre><code>&lt;?php
  
  namespace Arcturus\GeomancieBundle\Controller;
  namespace Arcturus\GeomancieBundle\Entity;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  
  class TirageController extends Controller
  {
      public function afficherTirageAction(Tirage $tirage)
      {
          // On compte le nombre de points dans chaque chaîne
          $nb_dot_l1 = $this-&gt;nbDot($tirage-&gt;getLigne1());
          $nb_dot_l2 = $this-&gt;nbDot($tirage-&gt;getLigne2());
          $nb_dot_l3 = $this-&gt;nbDot($tirage-&gt;getLigne3());
          $nb_dot_l4 = $this-&gt;nbDot($tirage-&gt;getLigne4());
  
          // On vérifie que les 4 chaînes contriennent au moins 1 point
          if ($nb_dot_l1 == 0 or $nb_dot_l2 == 0 or $nb_dot_l3 == 0 or $nb_dot_l4 == 0) {
              // On renvoie sur une page d'erreur
              $this-&gt;renderView('@ArcturusGeomancie/Default/erreur_tirage.html.twig');
          }
  
          // On charge les lignes dans un tableau paire/impaire
          $tab_dots_lines = $this-&gt;dots_to_array($nb_dot_l1, $nb_dot_l2, $nb_dot_l3, $nb_dot_l4);
          // On garde ce format pour dessiner la figure
          $data['dessin'] = $tab_dots_lines;
          // On récupère le nom de la figure
          $data['figure'] = $this-&gt;get_figure($tab_dots_lines);
          // On récupère l'analyse associée
          $data['analyse'] = $this-&gt;get_analysis($data['figure']);
  
          $this-&gt;renderView('@ArcturusGeomancie/Default/tirage.html.twig', $data);
      }
  [...]
  </code></pre>
  
  <p>Tirage.php (Entity)</p>
  
  <pre><code>&lt;?php
  
  class Tirage
  {
      private $ligne1;
      private $ligne2;
      private $ligne3;
      private $ligne4;
  
      public function getLigne1()
      {
          return $this-&gt;ligne1;
      }
  
      public function getLigne2()
      {
          return $this-&gt;ligne2;
      }
  
      public function getLigne3()
      {
          return $this-&gt;ligne3;
      }
  
      public function getLigne4()
      {
          return $this-&gt;ligne4;
      }
  }
  
  ?&gt;
  </code></pre>
  
  <p>And my directory tree :</p>
  
  <p><a href="https://i.stack.imgur.com/WlysW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WlysW.png" alt="enter image description here"></a></p>
  
  <p>Could anyone help me to find my error ?</p>
  
  <p>Thank you :)</p>