Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

37 lines
1.0KB

  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. use common\logic\User\UserProducer\Service\UserProducerSolver;
  8. class UserProducerContainer extends AbstractContainer
  9. {
  10. public function getServices(): array
  11. {
  12. return [
  13. UserProducerDefinition::class,
  14. UserProducerSolver::class,
  15. UserProducerRepository::class,
  16. UserProducerBuilder::class,
  17. ];
  18. }
  19. public function getDefinition(): UserProducerDefinition
  20. {
  21. return UserProducerDefinition::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. }