summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-11-06 07:46:11 -0600
committerxjm2017-11-06 07:46:11 -0600
commit1e850835d993fa794e0da63ab3abc7fea46ca5d3 (patch)
tree770c554dd82ea698e4c254b9b465b6f27835430c
parent3cadcd5df43d7bd88c7c99e19b960928b8d119a5 (diff)
Issue #2910682 by Wim Leers, jhedstrom, damiankloip, dawehner, Grayside: Mark serializer encoders @internal
-rw-r--r--core/modules/serialization/src/Encoder/JsonEncoder.php4
-rw-r--r--core/modules/serialization/src/Encoder/XmlEncoder.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/core/modules/serialization/src/Encoder/JsonEncoder.php b/core/modules/serialization/src/Encoder/JsonEncoder.php
index ad085ac..964c295 100644
--- a/core/modules/serialization/src/Encoder/JsonEncoder.php
+++ b/core/modules/serialization/src/Encoder/JsonEncoder.php
@@ -10,6 +10,10 @@ use Symfony\Component\Serializer\Encoder\JsonEncoder as BaseJsonEncoder;
/**
* Adds 'ajax to the supported content types of the JSON encoder'
+ *
+ * @internal
+ * This encoder should not be used directly. Rather, use the `serializer`
+ * service.
*/
class JsonEncoder extends BaseJsonEncoder implements EncoderInterface, DecoderInterface {
diff --git a/core/modules/serialization/src/Encoder/XmlEncoder.php b/core/modules/serialization/src/Encoder/XmlEncoder.php
index 9db6ecd..53177b0 100644
--- a/core/modules/serialization/src/Encoder/XmlEncoder.php
+++ b/core/modules/serialization/src/Encoder/XmlEncoder.php
@@ -12,6 +12,10 @@ use Symfony\Component\Serializer\Encoder\XmlEncoder as BaseXmlEncoder;
*
* This acts as a wrapper class for Symfony's XmlEncoder so that it is not
* implementing NormalizationAwareInterface, and can be normalized externally.
+ *
+ * @internal
+ * This encoder should not be used directly. Rather, use the `serializer`
+ * service.
*/
class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, DecoderInterface {