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.

48 line
1.2KB

  1. <?php
  2. namespace common\logic\User\UserProducer\Module;
  3. use common\logic\AbstractModule;
  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. use common\logic\User\UserProducer\Service\UserProducerSolver;
  8. /**
  9. * @mixin UserProducerDefinition
  10. * @mixin UserProducerSolver
  11. * @mixin UserProducerRepository
  12. * @mixin UserProducerBuilder
  13. */
  14. class UserProducerModule extends AbstractModule
  15. {
  16. public function getServices(): array
  17. {
  18. return [
  19. UserProducerDefinition::class,
  20. UserProducerSolver::class,
  21. UserProducerRepository::class,
  22. UserProducerBuilder::class,
  23. ];
  24. }
  25. public function getDefinition(): UserProducerDefinition
  26. {
  27. return UserProducerDefinition::getInstance();
  28. }
  29. public function getSolver(): UserProducerSolver
  30. {
  31. return UserProducerSolver::getInstance();
  32. }
  33. public function getRepository(): UserProducerRepository
  34. {
  35. return UserProducerRepository::getInstance();
  36. }
  37. public function getBuilder(): UserProducerBuilder
  38. {
  39. return UserProducerBuilder::getInstance();
  40. }
  41. }