| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | public function register(Container $app) |
||
| 11 | { |
||
| 12 | $app['serializer.builder'] = function () use ($app) { |
||
| 13 | $builder = SerializerBuilder::create() |
||
| 14 | ->setDebug($app['debug']) |
||
| 15 | ->addMetadataDir(__DIR__, 'Symfony\\Component\\EventDispatcher') |
||
| 16 | ; |
||
| 17 | |||
| 18 | return $builder; |
||
| 19 | }; |
||
| 20 | |||
| 21 | $app['serializer'] = function () use ($app) { |
||
| 22 | return $app['serializer.builder']->build(); |
||
| 23 | }; |
||
| 24 | } |
||
| 25 | } |
||
| 26 |