|
1234567891011121314151617181920212223242526272829303132 |
- <?php
-
- namespace common\logic\User\UserProducer;
-
- use common\logic\ContainerInterface;
- use common\logic\AbstractSingleton;
-
- class UserProducerContainer extends AbstractSingleton implements ContainerInterface
- {
- public function getEntityFqcn(): string
- {
- return UserProducer::class;
- }
-
- public function getServices(): array
- {
- return [
- UserProducerRepository::class,
- UserProducerBuilder::class,
- ];
- }
-
- public function getRepository(): UserProducerRepository
- {
- return new UserProducerRepository();
- }
-
- public function getBuilder(): UserProducerBuilder
- {
- return new UserProducerBuilder();
- }
- }
|