Для настройки маршрутизации на основе аннотаций Symphoy у меня есть эта строка
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
Работает нормально, но не рекомендуется:
* @return void
*
* @throws \InvalidArgumentException
*
* @deprecated this method is deprecated and will be removed in doctrine/annotations 2.0
* autoloading should be deferred to the globally registered autoloader by then. For now,
* use @example AnnotationRegistry::registerLoader('class_exists')
*/
public static function registerLoader(callable $callable)
Исходя из этого, я не понимаю, что мне следует использовать вместо этого.
Спасибо за любой совет