I created a new bundle available here : https://github.com/PHPDreamTeam/pink-flamingo-user-bundle
I want to install it using composer, I created a composer package, I published it on packagist and finally, I can install it, but it fails to load when I do in AppKernel :
new PHPDreamTeam\PinkFlamingoUserBundle\PinkFlamingoUserBundle()
This is my error :
Attempted to load class "PinkFlamingoUserBundle" from namespace "PinkFlamingoUserBundle".
Did you forget a "use" statement for "PHPDreamTeam\PinkFlamingoUserBundle\PinkFlamingoUserBundle"?
What's wrong with my project?
It was a cache issue, per comment by @matteo under original question.