| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 1.048 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 11 | 2 | public function register(Application $app) |
|
| 12 | { |
||
| 13 | $app['alchemy_rest.middleware.parse_date_params'] = $app->share(function () { |
||
| 14 | return new Middleware\SetDateAttributesMiddlewareFactory(); |
||
| 15 | 2 | }); |
|
| 16 | |||
| 17 | $app['alchemy_rest.middleware.parse_list_params'] = $app->share(function () { |
||
| 18 | return new Middleware\SetPaginationAndSortAttributesMiddlewareFactory(); |
||
| 19 | 2 | }); |
|
| 20 | |||
| 21 | $app['alchemy_rest.middleware.transform_response'] = $app->share(function () { |
||
| 22 | return new Middleware\SetTransformAttributeMiddlewareFactory(); |
||
| 23 | 2 | }); |
|
| 24 | |||
| 25 | 2 | $app['alchemy_rest.middleware.json_encoder'] = $app->share(function () { |
|
| 26 | return new Middleware\SetEncodingAttributeMiddlewareFactory(); |
||
| 27 | 2 | }); |
|
| 28 | 2 | } |
|
| 29 | |||
| 35 |