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.

ProductDistributionModule.php 1.2KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. namespace common\logic\Distribution\ProductDistribution\Module;
  3. use common\logic\AbstractModule;
  4. use common\logic\Distribution\ProductDistribution\Repository\ProductDistributionRepository;
  5. use common\logic\Distribution\ProductDistribution\Service\ProductDistributionBuilder;
  6. use common\logic\Distribution\ProductDistribution\Service\ProductDistributionDefinition;
  7. /**
  8. * @mixin ProductDistributionDefinition
  9. * @mixin ProductDistributionRepository
  10. * @mixin ProductDistributionBuilder
  11. */
  12. class ProductDistributionModule extends AbstractModule
  13. {
  14. public function getServices(): array
  15. {
  16. return [
  17. ProductDistributionDefinition::class,
  18. ProductDistributionRepository::class,
  19. ProductDistributionBuilder::class,
  20. ];
  21. }
  22. public function getDefinition(): ProductDistributionDefinition
  23. {
  24. return ProductDistributionDefinition::getInstance();
  25. }
  26. public function getRepository(): ProductDistributionRepository
  27. {
  28. return ProductDistributionRepository::getInstance();
  29. }
  30. public function getBuilder(): ProductDistributionBuilder
  31. {
  32. return ProductDistributionBuilder::getInstance();
  33. }
  34. }