Osirus Djodji
Osirus Djodji

Reputation: 3

How to generate bundle without bugs problems on AppKernel.php page?

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

Answers (1)

Juan I. Morales Pestana
Juan I. Morales Pestana

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

Related Questions