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