File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
src/Symfony/Component/Serializer/Encoder Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 11
11
12
12
namespace Symfony \Component \Serializer \Encoder ;
13
13
14
- use Symfony \Component \Serializer \SerializerInterface ;
15
14
use Symfony \Component \Serializer \SerializerAwareInterface ;
15
+ use Symfony \Component \Serializer \SerializerAwareTrait ;
16
16
17
17
/**
18
18
* SerializerAware Encoder implementation.
19
19
*
20
20
* @author Jordi Boggiano <[email protected] >
21
+ *
22
+ * @deprecated since version 3.2, to be removed in 4.0. Use the SerializerAwareTrait instead.
21
23
*/
22
24
abstract class SerializerAwareEncoder implements SerializerAwareInterface
23
25
{
24
- protected $ serializer ;
25
-
26
- /**
27
- * {@inheritdoc}
28
- */
29
- public function setSerializer (SerializerInterface $ serializer )
30
- {
31
- $ this ->serializer = $ serializer ;
32
- }
26
+ use SerializerAwareTrait;
33
27
}
You can’t perform that action at this time.
0 commit comments