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.

ProductSubscriptionModule.php 968B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace domain\Subscription\ProductSubscription;
  3. use domain\_\AbstractModule;
  4. class ProductSubscriptionModule extends AbstractModule
  5. {
  6. public function getServices(): array
  7. {
  8. return [
  9. ProductSubscriptionDefinition::class,
  10. ProductSubscriptionRepository::class,
  11. ProductSubscriptionBuilder::class,
  12. ProductSubscriptionManager::class,
  13. ];
  14. }
  15. public function getDefinition(): ProductSubscriptionDefinition
  16. {
  17. return ProductSubscriptionDefinition::getInstance();
  18. }
  19. public function getRepository(): ProductSubscriptionRepository
  20. {
  21. return ProductSubscriptionRepository::getInstance();
  22. }
  23. public function getBuilder(): ProductSubscriptionBuilder
  24. {
  25. return ProductSubscriptionBuilder::getInstance();
  26. }
  27. public function getManager(): ProductSubscriptionManager
  28. {
  29. return ProductSubscriptionManager::getInstance();
  30. }
  31. }