| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 18 | 35 | public function register(Application $app) |
|
| 19 | { |
||
| 20 | $app[Repository::USER] = $app->share(function () use ($app) { |
||
| 21 | 33 | return new Repository\DBALUserRepository($app['db']); |
|
| 22 | 35 | }); |
|
| 23 | $app[Repository::CITY] = $app->share(function()use($app){ |
||
| 24 | 4 | return new MockCityRepository(); |
|
| 25 | 35 | }); |
|
| 26 | 35 | $app[Repository::DIRECTION] = $app->share(function()use($app){ |
|
| 27 | 5 | return new Repository\ConfigDirectionsRepository($app['directions']); |
|
| 28 | 35 | }); |
|
| 29 | 35 | } |
|
| 30 | |||
| 43 | } |