[Serializer] Deprecate SerializerAwareEncoder
This commit is contained in:
parent
db208e3e25
commit
af57467be2
@ -11,23 +11,17 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Serializer\Encoder;
|
namespace Symfony\Component\Serializer\Encoder;
|
||||||
|
|
||||||
use Symfony\Component\Serializer\SerializerInterface;
|
|
||||||
use Symfony\Component\Serializer\SerializerAwareInterface;
|
use Symfony\Component\Serializer\SerializerAwareInterface;
|
||||||
|
use Symfony\Component\Serializer\SerializerAwareTrait;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SerializerAware Encoder implementation.
|
* SerializerAware Encoder implementation.
|
||||||
*
|
*
|
||||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
* @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
|
abstract class SerializerAwareEncoder implements SerializerAwareInterface
|
||||||
{
|
{
|
||||||
protected $serializer;
|
use SerializerAwareTrait;
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function setSerializer(SerializerInterface $serializer)
|
|
||||||
{
|
|
||||||
$this->serializer = $serializer;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user