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 line
965B

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