Issue #2910682 by Wim Leers, jhedstrom, damiankloip, dawehner, Grayside: Mark serializer encoders @internal

8.5.x
xjm 2017-11-06 07:46:11 -06:00
parent 3cadcd5df4
commit 1e850835d9
2 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,10 @@ use Symfony\Component\Serializer\Encoder\JsonEncoder as BaseJsonEncoder;
/** /**
* Adds 'ajax to the supported content types of the JSON encoder' * 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 { class JsonEncoder extends BaseJsonEncoder implements EncoderInterface, DecoderInterface {

View File

@ -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 * This acts as a wrapper class for Symfony's XmlEncoder so that it is not
* implementing NormalizationAwareInterface, and can be normalized externally. * 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 { class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, DecoderInterface {