| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 49 | protected function createSymfonySerializer(Container $container): SymfonySerializerInterface |
||
| 50 | { |
||
| 51 | $strategryProvider = $container->offsetGet('serializer_property_name_converter_strategy_provider'); |
||
| 52 | |||
| 53 | $normalizer = [ |
||
| 54 | new ObjectNormalizer( |
||
| 55 | null, |
||
| 56 | new PropertyNameConverter($strategryProvider), |
||
| 57 | null, |
||
| 58 | new PhpDocExtractor() |
||
| 59 | ), |
||
| 60 | new ArrayDenormalizer() |
||
| 61 | ]; |
||
| 62 | |||
| 63 | $encoders = [ |
||
| 64 | new JsonEncoder(), |
||
| 65 | new XmlEncoder() |
||
| 66 | ]; |
||
| 67 | |||
| 68 | return new SymfonySerializer( |
||
| 69 | $normalizer, |
||
| 70 | $encoders |
||
| 71 | ); |
||
| 74 |