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