Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function addToContainer(Container $c) |
||
21 | { |
||
22 | $c['repository.person'] = $c->factory(function ($c) { |
||
23 | /** @var EntityManager $em */ |
||
24 | $em = $c['doctrine.entity_manager']; |
||
25 | /** @var PersonRepository $repo */ |
||
26 | $repo = $em->getRepository('Del\Entity\Person'); |
||
27 | return $repo; });} |
||
28 | } |