Commit c3e56484 authored by alexpott's avatar alexpott

Issue #2958293 by rlhawk: Use SerializerAwareTrait instead of extending...

Issue #2958293 by rlhawk: Use SerializerAwareTrait instead of extending deprecated SerializerAwareEncoder in XmlEncoder
parent d90ac78f
......@@ -4,8 +4,9 @@
use Symfony\Component\Serializer\Encoder\EncoderInterface;
use Symfony\Component\Serializer\Encoder\DecoderInterface;
use Symfony\Component\Serializer\Encoder\SerializerAwareEncoder;
use Symfony\Component\Serializer\Encoder\XmlEncoder as BaseXmlEncoder;
use Symfony\Component\Serializer\SerializerAwareInterface;
use Symfony\Component\Serializer\SerializerAwareTrait;
* Adds XML support for serializer.
......@@ -17,7 +18,9 @@
* This encoder should not be used directly. Rather, use the `serializer`
* service.
class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, DecoderInterface {
class XmlEncoder implements SerializerAwareInterface, EncoderInterface, DecoderInterface {
use SerializerAwareTrait;
* The formats that this Encoder supports.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment