Reputation: 3
When I generate a new bundle I receive the error notice that kind:
"Fatal error: Uncaught Symfony\Component\Debug\Exception\ClassNotFoundException: Attempted to load class "myBundle" from namespace "my\myBundle". Did you forget a "use" statement for another namespace? in C:\wamp64\www\symfony\app\AppKernel.php"
Upvotes: 0
Views: 112
Reputation: 1147
in autoload section of composer.json replace the entry
"psr-4": { "AppBundle\\": "src/AppBundle" },
for
"psr-4": { "": "src/" },
then execute composer dumpautoload.
that worked for me.
Upvotes: 1