| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 1.037 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | 2 | private function addPersonRepository(Container $c) |
|
| 28 | { |
||
| 29 | $c['repository.person'] = $c->factory(function ($c) { |
||
| 30 | /** @var EntityManager $em */ |
||
| 31 | 2 | $em = $c['doctrine.entity_manager']; |
|
| 32 | /** @var PersonRepository $repo */ |
||
| 33 | 2 | $repo = $em->getRepository('Del\Entity\Person'); |
|
| 34 | 2 | return $repo; |
|
| 35 | }); |
||
| 36 | } |
||
| 37 | |||
| 57 | } |