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.

44 line
920B

  1. <?php
  2. namespace domain\Ticket\Ticket;
  3. use domain\_\AbstractModule;
  4. class TicketModule extends AbstractModule
  5. {
  6. public function getServices(): array
  7. {
  8. return [
  9. TicketDefinition::class,
  10. TicketSolver::class,
  11. TicketRepository::class,
  12. TicketBuilder::class,
  13. TicketNotifier::class,
  14. ];
  15. }
  16. public function getDefinition(): TicketDefinition
  17. {
  18. return TicketDefinition::getInstance();
  19. }
  20. public function getSolver(): TicketSolver
  21. {
  22. return TicketSolver::getInstance();
  23. }
  24. public function getRepository(): TicketRepository
  25. {
  26. return TicketRepository::getInstance();
  27. }
  28. public function getBuilder(): TicketBuilder
  29. {
  30. return TicketBuilder::getInstance();
  31. }
  32. public function getNotifier(): TicketNotifier
  33. {
  34. return TicketNotifier::getInstance();
  35. }
  36. }