use Symfony\Component\Serializer\Encoder\ChainEncoder;
use Symfony\Component\Serializer\Encoder\EncoderInterface;
use Symfony\Component\Serializer\Encoder\DecoderInterface;
+use Symfony\Component\Serializer\Normalizer\DenormalizerAwareInterface;
+use Symfony\Component\Serializer\Normalizer\NormalizerAwareInterface;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use Symfony\Component\Serializer\Normalizer\DenormalizerInterface;
use Symfony\Component\Serializer\Exception\LogicException;
/**
* @var array
+ *
+ * @deprecated since 3.1 will be removed in 4.0
*/
protected $normalizerCache = array();
/**
* @var array
+ *
+ * @deprecated since 3.1 will be removed in 4.0
*/
protected $denormalizerCache = array();
if ($normalizer instanceof SerializerAwareInterface) {
$normalizer->setSerializer($this);
}
+
+ if ($normalizer instanceof DenormalizerAwareInterface) {
+ $normalizer->setDenormalizer($this);
+ }
+
+ if ($normalizer instanceof NormalizerAwareInterface) {
+ $normalizer->setNormalizer($this);
+ }
}
$this->normalizers = $normalizers;