| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 14 | public function register(Container $container): void |
||
| 15 | { |
||
| 16 | $container['api-http.request.manager'] = static function () use ($container) { |
||
| 17 | 2 | return new RequestManager($container['deserializer']); |
|
| 18 | }; |
||
| 19 | |||
| 20 | 1 | $container['api-http.response.manager'] = static function () use ($container) { |
|
| 21 | return new ResponseManager( |
||
| 22 | $container['deserializer'], |
||
| 23 | $container['api-http.response.factory'], |
||
| 24 | 1 | $container['serializer'] |
|
| 25 | 1 | ); |
|
| 26 | 1 | }; |
|
| 27 | 1 | ||
| 28 | $container['api-http.response.factory'] = static function (): void { |
||
| 29 | throw new \RuntimeException('Missing response factory, define service "api-http.response.factory"'); |
||
| 30 | }; |
||
| 33 |