| 1 | <?php |
||
| 11 | class UserPackage implements RegistrationInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @param Container $c |
||
| 15 | */ |
||
| 16 | 25 | public function addToContainer(Container $c) |
|
| 17 | { |
||
| 18 | $personPackage = new PersonPackage(); |
||
| 19 | $personPackage->addToContainer($c); |
||
| 20 | |||
| 21 | $function = function ($c) { |
||
| 22 | 25 | $svc = new UserService($c); |
|
| 23 | 25 | return $svc; |
|
| 24 | }; |
||
| 25 | |||
| 26 | $c['service.user'] = $c->factory($function); |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getEntityPath() |
||
| 33 | |||
| 34 | public function hasEntityPath() |
||
| 38 | |||
| 39 | } |