| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 22 | public function addToContainer(Container $c) |
|
| 17 | { |
||
| 18 | 22 | $personPackage = new PersonPackage(); |
|
| 19 | 22 | $personPackage->addToContainer($c); |
|
| 20 | |||
| 21 | 22 | $function = function ($c) { |
|
| 22 | 22 | $svc = new UserService($c); |
|
| 23 | 22 | return $svc; |
|
| 24 | 22 | }; |
|
| 25 | |||
| 26 | 22 | $c['service.user'] = $c->factory($function); |
|
| 27 | 22 | } |
|
| 28 | |||
| 39 | } |