JMSSerializer stand alone - Annotation does not exist, or cannot be auto-loaded

前端 未结 6 1495
遥遥无期
遥遥无期 2020-12-13 18:00

I am attempting to use JMSSerializer as a stand alone library to map JSON responses from an API to my model classes and am running into some issues.

Executing the fo

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-13 18:48

    Pretty sure this enables silent auto-loading which is much more convenient than registering the namespaces yourself.

    AnnotationRegistry::registerLoader('class_exists');
    

提交回复
热议问题