| 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 |
||
| 22 | 1 | private function addUserRepository(Container $c) |
|
| 23 | { |
||
| 24 | $c['repository.user'] = $c->factory(function ($c) { |
||
| 25 | /** @var EntityManager $em */ |
||
| 26 | 1 | $em = $c['doctrine.entity_manager']; |
|
| 27 | /** @var UserRepository $repo */ |
||
| 28 | 1 | $repo = $em->getRepository('Del\Entity\User'); |
|
| 29 | 1 | return $repo; |
|
| 30 | 1 | }); |
|
| 31 | 1 | } |
|
| 32 | |||
| 51 | } |