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.

UserGroupContainer.php 667B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace common\logic\User\UserGroup;
  3. use common\logic\ContainerInterface;
  4. use common\logic\AbstractSingleton;
  5. class UserGroupContainer extends AbstractSingleton implements ContainerInterface
  6. {
  7. public function getEntityFqcn(): string
  8. {
  9. return UserGroup::class;
  10. }
  11. public function getServices(): array
  12. {
  13. return [
  14. UserGroupBuilder::class,
  15. UserGroupRepository::class
  16. ];
  17. }
  18. public function getFactory(): UserGroupBuilder
  19. {
  20. return new UserGroupBuilder();
  21. }
  22. public function getRepository(): UserGroupRepository
  23. {
  24. return new UserGroupRepository();
  25. }
  26. }