feature #18483 [Serializer] Deprecate SerializerAwareEncoder (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
This commit is contained in:
commit
e4177a0744
@ -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