| 1 | <?php |
||
| 12 | class User implements RegistrationInterface |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @param Container $c |
||
| 16 | */ |
||
| 17 | 23 | public function addToContainer(Container $c) |
|
| 24 | |||
| 25 | 23 | private function addUserRepository(Container $c) |
|
| 35 | |||
| 36 | private function addUserService(Container $c) |
||
| 37 | { |
||
| 38 | 23 | $c['service.user'] = $c->factory(function ($c) { |
|
| 39 | 22 | $svc = new UserService($c['doctrine.entity_manager'], $c['service.person']); |
|
| 40 | 22 | return $svc; |
|
| 41 | 23 | }); |
|
| 42 | 23 | } |
|
| 43 | |||
| 44 | 23 | public function getEntityPath() |
|
| 48 | |||
| 49 | 23 | public function hasEntityPath() |
|
| 53 | |||
| 54 | } |