php app/console generate:bundle en la versión 2.8.* de Symfony

Llevo varios días de inmersión en Symfony y Syilus, aunque he tocado algunas cosas de D8, lo cierto es que eran cosas muy superficiales, y un nuevo proyecto que nos toca hacer en Sylius supone meternos de lleno con este magnífico framework.

Pero me he encontrado que cuando ejecuto la sentencia de generate:bundle de la consola, dependiendo de como lo haga el Bundle se genera bien y se carga correctamente, o se genera mal y hay que terminar tocando varios archivos para asegurar la carga de la clase.

Vamos al turrón:

                                           
  Welcome to the Symfony bundle generator! 
                                           

Are you planning on sharing this bundle across multiple applications? [no]: no

Your application code must be written in bundles. This command helps
you generate them easily.

Give your bundle a descriptive name, like BlogBundle.
Bundle name: BlogBundle  

Bundles are usually generated into the src/ directory. Unless you're
doing something custom, hit enter to keep this default!

Target Directory [src/]: src/proyecto/

What format do you want to use for your generated configuration?

Configuration format (annotation, yml, xml, php) [annotation]: yml

                    
  Bundle generation 
                    

> Generating a sample bundle skeleton into app/../src/proyecto/BlogBundle OK!
> Checking that the bundle is autoloaded: FAILED
> Enabling the bundle inside app/AppKernel.php: OK
> Importing the bundle's routes from the app/config/routing.yml file: OK
> Importing the bundle's services.yml from the app/config/config.yml file: 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:

Si nos ocurre esto, tendemos que actualizar la sección de autoload de composer.json:

 
"autoload": {
         "psr-4": {
              "": "src/",
              "projecto\\BlogBundle\": "src/projecto/BlogBundle/"
         },
         "classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
     },

A continuación, en el archivo /root/app/AppKernel.php, lo editamos y cambiamos:

new BlogBundle\BlogBundle(),

por:

new projecto\BlogBundle\BlogBundle(),

Por último en /root/src/proyecto/BlogBunlde/BlogBundle.php actualizamos el namespaces a:

namespace proyecto\BlogBundle;

Esta es la forma complicada de generar los Bundles, por el contrario, si al rellenar los datos del Bundle lo hacemos de la siguiente manera no da problemas:

El punto esta en que cuando nos preguntan por el nombre del Bundle le indicamos también el directorio en el que queremos alojarlo.

                                          
  Welcome to the Symfony bundle generator! 
                                           

Are you planning on sharing this bundle across multiple applications? [no]: no

Your application code must be written in bundles. This command helps
you generate them easily.

Give your bundle a descriptive name, like BlogBundle.
Bundle name: proyecto/NoticiasBundle

In your code, a bundle is often referenced by its name. It can be the
concatenation of all namespace parts but it's really up to you to come
up with a unique name (a good practice is to start with the vendor name).
Based on the namespace, we suggest proyectoNoticiasBundle.

Bundle name [proyectoNoticiasBundle]:

Bundles are usually generated into the src/ directory. Unless you're
doing something custom, hit enter to keep this default!

Target Directory [src/]:

What format do you want to use for your generated configuration?

Configuration format (annotation, yml, xml, php) [annotation]: yml

                    
  Bundle generation 
                    

> Generating a sample bundle skeleton into app/../src/proyecto/NoticiasBundle OK!
> Checking that the bundle is autoloaded: OK
> Enabling the bundle inside app/AppKernel.php: OK
> Importing the bundle's routes from the app/config/routing.yml file: OK
> Importing the bundle's services.yml from the app/config/config.yml file: OK

                                        
  Everything is OK! Now get to work :).