Skip to content

Commit

Permalink
[Serializer] Deprecate SerializerAwareEncoder
Browse files Browse the repository at this point in the history
  • Loading branch information
JhonnyL committed Apr 21, 2016
1 parent db208e3 commit af57467
Showing 1 changed file with 4 additions and 10 deletions.
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 af57467

Please sign in to comment.