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

32 行
695B

  1. <?php
  2. namespace common\logic\User\UserProducer;
  3. use common\logic\ContainerInterface;
  4. use common\logic\AbstractSingleton;
  5. class UserProducerContainer extends AbstractSingleton implements ContainerInterface
  6. {
  7. public function getEntityFqcn(): string
  8. {
  9. return UserProducer::class;
  10. }
  11. public function getServices(): array
  12. {
  13. return [
  14. UserProducerRepository::class,
  15. UserProducerBuilder::class,
  16. ];
  17. }
  18. public function getRepository(): UserProducerRepository
  19. {
  20. return new UserProducerRepository();
  21. }
  22. public function getBuilder(): UserProducerBuilder
  23. {
  24. return new UserProducerBuilder();
  25. }
  26. }