Skip to content

Commit

Permalink
[Serializer] remove remaining deprecated features
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed May 25, 2017
1 parent 6da6853 commit 8425f1b
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 70 deletions.
8 changes: 8 additions & 0 deletions src/Symfony/Component/Serializer/CHANGELOG.md
@@ -1,6 +1,14 @@
CHANGELOG
=========

4.0.0
-----

* removed the `SerializerAwareEncoder` and `SerializerAwareNormalizer` classes,
use the `SerializerAwareTrait` instead
* removed the `Serializer::$normalizerCache` and `Serializer::$denormalizerCache`
properties

3.3.0
-----

Expand Down

This file was deleted.

6 changes: 5 additions & 1 deletion src/Symfony/Component/Serializer/Encoder/XmlEncoder.php
Expand Up @@ -12,6 +12,8 @@
namespace Symfony\Component\Serializer\Encoder;

use Symfony\Component\Serializer\Exception\UnexpectedValueException;
use Symfony\Component\Serializer\SerializerAwareInterface;
use Symfony\Component\Serializer\SerializerAwareTrait;

/**
* Encodes XML data.
Expand All @@ -21,8 +23,10 @@
* @author Fabian Vogler <fabian@equivalence.ch>
* @author Kévin Dunglas <dunglas@gmail.com>
*/
class XmlEncoder extends SerializerAwareEncoder implements EncoderInterface, DecoderInterface, NormalizationAwareInterface
class XmlEncoder implements EncoderInterface, DecoderInterface, NormalizationAwareInterface, SerializerAwareInterface
{
use SerializerAwareTrait;

const FORMAT = 'xml';

/**
Expand Down
Expand Up @@ -19,14 +19,17 @@
use Symfony\Component\Serializer\Mapping\AttributeMetadataInterface;
use Symfony\Component\Serializer\NameConverter\NameConverterInterface;
use Symfony\Component\Serializer\SerializerAwareInterface;
use Symfony\Component\Serializer\SerializerAwareTrait;

/**
* Normalizer implementation.
*
* @author Kévin Dunglas <dunglas@gmail.com>
*/
abstract class AbstractNormalizer extends SerializerAwareNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAwareInterface
abstract class AbstractNormalizer implements NormalizerInterface, DenormalizerInterface, SerializerAwareInterface
{
use SerializerAwareTrait;

const CIRCULAR_REFERENCE_LIMIT = 'circular_reference_limit';
const OBJECT_TO_POPULATE = 'object_to_populate';
const GROUPS = 'groups';
Expand Down

This file was deleted.

14 changes: 0 additions & 14 deletions src/Symfony/Component/Serializer/Serializer.php
Expand Up @@ -54,20 +54,6 @@ class Serializer implements SerializerInterface, NormalizerInterface, Denormaliz
*/
protected $normalizers = array();

/**
* @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();

public function __construct(array $normalizers = array(), array $encoders = array())
{
foreach ($normalizers as $normalizer) {
Expand Down

0 comments on commit 8425f1b

Please sign in to comment.