您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

UserProducerModule.php 858B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace domain\User\UserProducer;
  3. use domain\_\AbstractModule;
  4. class UserProducerModule extends AbstractModule
  5. {
  6. public function getServices(): array
  7. {
  8. return [
  9. UserProducerDefinition::class,
  10. UserProducerSolver::class,
  11. UserProducerRepository::class,
  12. UserProducerBuilder::class,
  13. ];
  14. }
  15. public function getDefinition(): UserProducerDefinition
  16. {
  17. return UserProducerDefinition::getInstance();
  18. }
  19. public function getSolver(): UserProducerSolver
  20. {
  21. return UserProducerSolver::getInstance();
  22. }
  23. public function getRepository(): UserProducerRepository
  24. {
  25. return UserProducerRepository::getInstance();
  26. }
  27. public function getBuilder(): UserProducerBuilder
  28. {
  29. return UserProducerBuilder::getInstance();
  30. }
  31. }