1 | <?php |
||
23 | class Serializer implements SerializerInterface |
||
24 | { |
||
25 | /** |
||
26 | * @var \Symfony\Component\Serializer\SerializerInterface |
||
27 | */ |
||
28 | private $serializer; |
||
29 | |||
30 | 27 | public function __construct() |
|
31 | { |
||
32 | 27 | $this->serializer = new SymfonySerializer( |
|
33 | 27 | array(new Normalizer()), array(new JsonEncoder()) |
|
34 | ); |
||
35 | 27 | } |
|
36 | |||
37 | /** |
||
38 | * {@inheritDoc} |
||
39 | */ |
||
40 | public function serialize($data) |
||
44 | |||
45 | /** |
||
46 | * {@inheritDoc} |
||
47 | */ |
||
48 | 15 | public function deserialize($data, $type) |
|
54 | |||
55 | /** |
||
56 | * {@inheritDoc} |
||
57 | */ |
||
58 | 9 | public static function getCloudSerializer() |
|
62 | |||
63 | /** |
||
64 | * {@inheritDoc} |
||
65 | */ |
||
66 | 9 | public static function getEncodingSerializer() |
|
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | 9 | public static function getProfileSerializer() |
|
78 | |||
79 | /** |
||
80 | * {@inheritDoc} |
||
81 | */ |
||
82 | 9 | public static function getVideoSerializer() |
|
86 | } |
||
87 |