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.

36 lines
1.1KB

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