Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function __construct(SerializerInterface $serializer, LoggerInterface $logger = null) |
||
31 | { |
||
32 | parent::__construct($logger); |
||
33 | |||
34 | $this->serializers = [ |
||
35 | SerializationOptions::OBJECT_SERIALIZER => new JsonObjectSerializer(), |
||
36 | SerializationOptions::ARRAY_SERIALIZER => new JsonArraySerializer(), |
||
37 | SerializationOptions::SYMFONY_SERIALIZER => new SymfonySerializerAdapter($serializer), |
||
38 | ]; |
||
46 |