Doctrine annotation not existing

The same happened to me. The issue came down to doctrine-factories and PSR-11.

My tip for the day, without getting into details, take a look at -> https://github.com/Roave/psr-container-doctrine