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.

TicketUserModule.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. namespace common\logic\Ticket\TicketUser\Module;
  3. use common\logic\AbstractModule;
  4. use common\logic\Ticket\TicketMessage\Repository\TicketMessageRepository;
  5. use common\logic\Ticket\TicketMessage\Service\TicketMessageBuilder;
  6. use common\logic\Ticket\TicketMessage\Service\TicketMessageDefinition;
  7. use common\logic\Ticket\TicketUser\Repository\TicketUserRepository;
  8. use common\logic\Ticket\TicketUser\Service\TicketUserBuilder;
  9. use common\logic\Ticket\TicketUser\Service\TicketUserDefinition;
  10. /**
  11. * @mixin TicketMessageDefinition
  12. * @mixin TicketMessageRepository
  13. * @mixin TicketMessageBuilder
  14. */
  15. class TicketUserModule extends AbstractModule
  16. {
  17. public function getServices(): array
  18. {
  19. return [
  20. TicketUserDefinition::class,
  21. TicketUserRepository::class,
  22. TicketUserBuilder::class
  23. ];
  24. }
  25. public function getDefinition(): TicketUserDefinition
  26. {
  27. return TicketUserDefinition::getInstance();
  28. }
  29. public function getRepository(): TicketUserRepository
  30. {
  31. return TicketUserRepository::getInstance();
  32. }
  33. public function getBuilder(): TicketUserBuilder
  34. {
  35. return TicketUserBuilder::getInstance();
  36. }
  37. }