| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1.0013 |
| Changes | 6 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 36 | 1 | public function register(Container $app) |
|
| 37 | { |
||
| 38 | 1 | $app["serializer.namingStrategy"] = "CamelCase"; |
|
| 39 | 1 | $app["serializer.namingStrategy.separator"] = "_"; |
|
| 40 | 1 | $app["serializer.namingStrategy.lowerCase"] = true; |
|
| 41 | |||
| 42 | 1 | $app["serializer.propertyNamingStrategy"] = new PropertyNamingStrategyService(); |
|
| 43 | 1 | $app["serializer.builder"] = new BuilderService(); |
|
| 44 | 1 | $app["serializer"] = function (Container $app) { |
|
| 45 | return $app["serializer.builder"]->build(); |
||
| 46 | }; |
||
| 47 | 1 | } |
|
| 48 | } |
||
| 49 |