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.

38 lines
859B

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