title: Cannot declare a class already in use
body: <p>I tried to install and configure SonataUserBundle on my project. I installed and configured correctly SonataAdminBundle and all works fine. But after extends the bundle and generate the application I have errors.
  I'm using Symfony 3.4 version.</p>
  
  <pre><code>php app/console sonata:easy-extends:generate SonataUserBundle -d src
  </code></pre>
  
  <p>a folder is created on my src folder named Application with the generated app.
  I added that too to my bundles.php file :</p>
  
  <pre><code>Sonata\UserBundle\SonataUserBundle::class =&gt; ['all' =&gt; true],
  Application\Sonata\UserBundle\ApplicationSonataUserBundle::class =&gt; ['all' =&gt; true],
  </code></pre>
  
  <p>And configured my routes, but when I run my website, I got this error :</p>
  
  <pre><code>Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "ApplicationSonataUserBundle" from namespace "Application\Sonata\UserBundle".
  </code></pre>
  
  <p>Did you forget a "use" statement for another namespace? in C:\wamp64\www\staff-ma\src\Kernel.php:33</p>
  
  <p>My ApplicationSonataUserBundle class :</p>
  
  <pre><code>namespace Application\Sonata\UserBundle;
  
  use Symfony\Component\HttpKernel\Bundle\Bundle;
  
  class ApplicationSonataUserBundle extends Bundle
  {
     /**
     * {@inheritdoc}
     */
     public function getParent()
     {
        return 'SonataUserBundle';
     }
  }
  </code></pre>
  
  <p>My composer.json :</p>
  
  <pre><code>"autoload": {
      "psr-4": {
          "App\\": "src/"
      }
  </code></pre>
  
  <p>I added that :</p>
  
  <pre><code>"autoload": {
      "psr-4": {
          "App\\": "src/"
          "Application\\": "src/Application/Sonata/UserBundle/"
      }
  },
  </code></pre>
  
  <p>But I got another the same error.</p>