Differences for the usage of the simple annotation reader. If it is not activated, then everything will work, as long as it can be autoloaded.
I think maybe you should specify that when you do not use the simple annotation reader, then you should register your autoloader (composer, ... whatever) with the following (if it's composer, as it need to be adapted) :
I think maybe trying to create an "autoloader" service provider for Silex (as this was removed), and checking if there is such a service provider could be maybe be useful to register it automatically ? Like the following :
<?php
// ...
if (isset($app['autoloader'])) {
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader($app['autoloader']);
}
Differences for the usage of the simple annotation reader. If it is not activated, then everything will work, as long as it can be autoloaded.
I think maybe you should specify that when you do not use the simple annotation reader, then you should register your autoloader (composer, ... whatever) with the following (if it's composer, as it need to be adapted) :
I think maybe trying to create an "autoloader" service provider for Silex (as this was removed), and checking if there is such a service provider could be maybe be useful to register it automatically ? Like the following :
But it's up to you. :)