title: Symfony 3.4 : generate bundle : ClassNotFoundException: Attempted to load class "MyVendorFOSUserBundle" from namespace "MyVendorFOSUserBundle"
body: <p>Hello every body I'm doing inheritance from FOSUserBundle to override some controllers, but At first step when I was creating a simple bundle I found an issue:</p>
  
  <pre><code>bin/console genrate:bundle
  
  Are you planning on sharing this bundle across multiple applications? [no]:
  Bundle name: MyVendorFOSUserBundle
  
  Target Directory [src/]: src/MyVendor/
  
  Configuration format (annotation, yml, xml, php) [annotation]: 
  
  Bundle generation  
  
  &gt; Generating a sample bundle skeleton into app/../src/MyVendor/MyVendorFOSUserBundle
    created ./app/../src/MyVendor/MyVendorFOSUserBundle/
    created ./app/../src/MyVendor/MyVendorFOSUserBundle/MyVendorFOSUserBundle.php
    created ./app/../src/MyVendor/MyVendorFOSUserBundle/Controller/
    created ./app/../src/MyVendor/MyVendorFOSUserBundle/Controller/DefaultController.php
    created ./app/../tests/MyVendorFOSUserBundle/Controller/
    created ./app/../tests/MyVendorFOSUserBundle/Controller/DefaultControllerTest.php
    created ./app/../src/MyVendor/MyVendorFOSUserBundle/Resources/views/Default/
    created ./app/../src/MyVendor/MyVendorFOSUserBundle/Resources/views/Default/index.html.twig
    created ./app/../src/MyVendor/MyVendorFOSUserBundle/Resources/config/
    created ./app/../src/MyVendor/MyVendorFOSUserBundle/Resources/config/services.yml
  &gt; Checking that the bundle is autoloaded
  FAILED
  &gt; Enabling the bundle inside app/AppKernel.php
    updated ./app/AppKernel.php
  OK
  &gt; Importing the bundle's routes from the app/config/routing.yml file
    updated ./app/config/routing.yml
  OK
  &gt; Importing the bundle's services.yml from the app/config/config.yml file
    updated ./app/config/config.yml
  OK
  
    The command was not able to configure everything automatically.  
    You'll need to make the following changes manually.              
  
  - Edit the composer.json file and register the bundle
    namespace in the "autoload" section:
  </code></pre>
  
  <p>At first solution I tried to modify composer.json :*</p>
  
  <pre><code>"autoload": {
      "psr-4": {
          "": "src/"  //modif 
      },
      "classmap": [
          "app/AppKernel.php",
          "app/AppCache.php"
      ]
  },
  </code></pre>
  
  <p>Does someone have any idea about that </p>