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.

40 lines
1.0KB

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