summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-04-07 07:11:49 (GMT)
committerAlex Pott2018-04-07 07:11:49 (GMT)
commitc3e564843ccad8da3f3cb6a4ad43aa06e0bb93ef (patch)
treed0c032bf8b150385af38f82ba2a14c9bdfd9cce9
parentd90ac78f3ebf24d06c8b096e1de5d619ceac5881 (diff)
Issue #2958293 by rlhawk: Use SerializerAwareTrait instead of extending deprecated SerializerAwareEncoder in XmlEncoder
-rw-r--r--core/modules/serialization/src/Encoder/XmlEncoder.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/modules/serialization/src/Encoder/XmlEncoder.php b/core/modules/serialization/src/Encoder/XmlEncoder.php
index 125a2cc..e41f52b 100644
--- a/core/modules/serialization/src/Encoder/XmlEncoder.php
+++ b/core/modules/serialization/src/Encoder/XmlEncoder.php
@@ -4,8 +4,9 @@ namespace Drupal\serialization\Encoder;
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 @@ use Symfony\Component\Serializer\Encoder\XmlEncoder as BaseXmlEncoder;
* 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.