comparison core/modules/serialization/src/Encoder/XmlEncoder.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children af1871eacc83
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
2 2
3 namespace Drupal\serialization\Encoder; 3 namespace Drupal\serialization\Encoder;
4 4
5 use Symfony\Component\Serializer\Encoder\EncoderInterface; 5 use Symfony\Component\Serializer\Encoder\EncoderInterface;
6 use Symfony\Component\Serializer\Encoder\DecoderInterface; 6 use Symfony\Component\Serializer\Encoder\DecoderInterface;
7 use Symfony\Component\Serializer\Encoder\SerializerAwareEncoder;
8 use Symfony\Component\Serializer\Encoder\XmlEncoder as BaseXmlEncoder; 7 use Symfony\Component\Serializer\Encoder\XmlEncoder as BaseXmlEncoder;
8 use Symfony\Component\Serializer\SerializerAwareInterface;
9 use Symfony\Component\Serializer\SerializerAwareTrait;
9 10
10 /** 11 /**
11 * Adds XML support for serializer. 12 * Adds XML support for serializer.
12 * 13 *
13 * This acts as a wrapper class for Symfony's XmlEncoder so that it is not 14 * This acts as a wrapper class for Symfony's XmlEncoder so that it is not
15 * 16 *
16 * @internal 17 * @internal
17 * This encoder should not be used directly. Rather, use the `serializer` 18 * This encoder should not be used directly. Rather, use the `serializer`
18 * service. 19 * service.
19 */ 20 */
20 class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, DecoderInterface { 21 class XmlEncoder implements SerializerAwareInterface, EncoderInterface, DecoderInterface {
22
23 use SerializerAwareTrait;
21 24
22 /** 25 /**
23 * The formats that this Encoder supports. 26 * The formats that this Encoder supports.
24 * 27 *
25 * @var array 28 * @var array