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