| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | 3 | public function addToContainer(Container $c): void |
|
| 21 | { |
||
| 22 | 3 | $personPackage = new PersonPackage(); |
|
| 23 | 3 | $personPackage->addToContainer($c); |
|
| 24 | |||
| 25 | 3 | $function = function (Container $c) { |
|
| 26 | 3 | $entityManager = $c->get(EntityManager::class); |
|
| 27 | 3 | $personService = $c->get(PersonService::class); |
|
| 28 | |||
| 29 | 3 | return new UserService($entityManager, $personService); |
|
| 30 | }; |
||
| 31 | |||
| 32 | 3 | $c[UserService::class] = $c->factory($function); |
|
| 33 | 3 | } |
|
| 55 |