FOSRestBundle and JMSSerializer custom form error handler

后端 未结 1 455
小蘑菇
小蘑菇 2021-01-14 09:48

I have written a custom Form Handler for JMSSerializerBundle that I\'m using with FOSRestBundle. According to the documentation it should be as easy as tagging a service co

1条回答
  •  借酒劲吻你
    2021-01-14 10:22

    you do not enable the form error handler by tagging, but by setting the jms_serializer.form_error_handler.class parameter to point to your class:

    parameters: jms_serializer.form_error_handler.class: AppBundle\Handler\FormErrorHandler

    0 讨论(0)
提交回复
热议问题