summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-04-07 07:12:27 (GMT)
committerAlex Pott2018-04-07 07:12:27 (GMT)
commit33519ea3c75edb85199b56e5e5a3579f9bf5da49 (patch)
tree12d55cd8a0d56fd3b079969fb658b525d5158ecd
parentc3e564843ccad8da3f3cb6a4ad43aa06e0bb93ef (diff)
Issue #2958292 by rlhawk: Use SerializerAwareTrait instead of extending deprecated SerializerAwareNormalizer in NormalizerBase
-rw-r--r--core/modules/serialization/src/Normalizer/NormalizerBase.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/core/modules/serialization/src/Normalizer/NormalizerBase.php b/core/modules/serialization/src/Normalizer/NormalizerBase.php
index 8779b1a..8792e50 100644
--- a/core/modules/serialization/src/Normalizer/NormalizerBase.php
+++ b/core/modules/serialization/src/Normalizer/NormalizerBase.php
@@ -3,12 +3,15 @@
namespace Drupal\serialization\Normalizer;
use Drupal\Core\Cache\CacheableDependencyInterface;
-use Symfony\Component\Serializer\Normalizer\SerializerAwareNormalizer;
+use Symfony\Component\Serializer\SerializerAwareInterface;
+use Symfony\Component\Serializer\SerializerAwareTrait;
/**
* Base class for Normalizers.
*/
-abstract class NormalizerBase extends SerializerAwareNormalizer implements CacheableNormalizerInterface {
+abstract class NormalizerBase implements SerializerAwareInterface, CacheableNormalizerInterface {
+
+ use SerializerAwareTrait;
/**
* The interface or class that this Normalizer supports.