Hi I\'ve been learning symfony, and every time I use the \"php bin/console generate:bundle\" command to create a bundle, even though I leave everything by default, I keep gettin
Edit composer.json:
Before:
"autoload": {
"psr-4": {
"AppBundle\\": "src/AppBundle",
},
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
}'
After:
"autoload": {
"psr-4": {
"AppBundle\\": "src/AppBundle",
"NameofBundle\\": "src/NameofBundle"
},
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
},
Then run:
composer dump-autoload