Skip to content

Commit

Permalink
feature symfony#18483 [Serializer] Deprecate SerializerAwareEncoder (…
Browse files Browse the repository at this point in the history
…JhonnyL)

This PR was merged into the 3.2-dev branch.

Discussion
----------

[Serializer] Deprecate SerializerAwareEncoder

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

Commits
-------

af57467 [Serializer] Deprecate SerializerAwareEncoder
  • Loading branch information
fabpot committed Jun 8, 2016
2 parents a7a0475 + c1aedc3 commit abd6ed0
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions Encoder/SerializerAwareEncoder.php
Expand Up @@ -11,23 +11,17 @@

namespace Symfony\Component\Serializer\Encoder;

use Symfony\Component\Serializer\SerializerInterface;
use Symfony\Component\Serializer\SerializerAwareInterface;
use Symfony\Component\Serializer\SerializerAwareTrait;

/**
* SerializerAware Encoder implementation.
*
* @author Jordi Boggiano <j.boggiano@seld.be>
*
* @deprecated since version 3.2, to be removed in 4.0. Use the SerializerAwareTrait instead.
*/
abstract class SerializerAwareEncoder implements SerializerAwareInterface
{
protected $serializer;

/**
* {@inheritdoc}
*/
public function setSerializer(SerializerInterface $serializer)
{
$this->serializer = $serializer;
}
use SerializerAwareTrait;
}

0 comments on commit abd6ed0

Please sign in to comment.