You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
932B

  1. <?php
  2. namespace common\logic\User\UserProducer\Wrapper;
  3. use common\logic\AbstractContainer;
  4. use common\logic\User\UserProducer\Repository\UserProducerRepository;
  5. use common\logic\User\UserProducer\Service\UserProducerBuilder;
  6. use common\logic\User\UserProducer\Service\UserProducerDefinition;
  7. class UserProducerContainer extends AbstractContainer
  8. {
  9. public function getServices(): array
  10. {
  11. return [
  12. UserProducerDefinition::class,
  13. UserProducerRepository::class,
  14. UserProducerBuilder::class,
  15. ];
  16. }
  17. public function getDefinition(): UserProducerDefinition
  18. {
  19. return UserProducerDefinition::getInstance();
  20. }
  21. public function getRepository(): UserProducerRepository
  22. {
  23. return UserProducerRepository::getInstance();
  24. }
  25. public function getBuilder(): UserProducerBuilder
  26. {
  27. return UserProducerBuilder::getInstance();
  28. }
  29. }