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.

UserProducerContainer.php 695B

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