| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 48 | protected function createSymfonySerializer(): SymfonySerializerInterface |
||
| 49 | { |
||
| 50 | $normalizer = [ |
||
| 51 | new ObjectNormalizer(null, null, null, new ReflectionExtractor()), |
||
| 52 | new ArrayDenormalizer() |
||
| 53 | ]; |
||
| 54 | |||
| 55 | $encoders = [ |
||
| 56 | new JsonEncoder(), |
||
| 57 | new XmlEncoder() |
||
| 58 | ]; |
||
| 59 | |||
| 60 | return new SymfonySerializer( |
||
| 61 | $normalizer, |
||
| 62 | $encoders |
||
| 63 | ); |
||
| 66 |