Creating a JMS Serializer handler in symfony2

前端 未结 1 1084
南旧
南旧 2020-12-11 04:02

I tried to follow the related documentation, here:
http://jmsyst.com/libs/serializer/master/configuration
here
http://jmsyst.com/libs/serializer/master/handlers<

相关标签:
1条回答
  • 2020-12-11 04:45

    The solution is to create a service with the right tag.

    datetimezone_handler:
        class:     MyVendor\MyBundle\Serializer\Handler\DateTimeZoneHandler
        tags:
            - { name: jms_serializer.subscribing_handler }
    
    0 讨论(0)
提交回复
热议问题