| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | 23 | private function addUserRepository(Container $c) |
|
| 26 | { |
||
| 27 | $c['repository.user'] = $c->factory(function ($c) { |
||
| 28 | /** @var EntityManager $em */ |
||
| 29 | 1 | $em = $c['doctrine.entity_manager']; |
|
| 30 | /** @var UserRepository $repo */ |
||
| 31 | 1 | $repo = $em->getRepository('Del\Entity\User'); |
|
| 32 | 1 | return $repo; |
|
| 33 | 23 | }); |
|
| 34 | 23 | } |
|
| 35 | |||
| 54 | } |