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.

28 lines
549B

  1. <?php
  2. namespace common\containers;
  3. use common\logic\ContainerInterface;
  4. use common\logic\UserProducer\UserProducerModel;
  5. use common\repositories\UserProducerRepository;
  6. class UserProducerContainer implements ContainerInterface
  7. {
  8. public function getEntityFqcn(): string
  9. {
  10. return UserProducerModel::class;
  11. }
  12. public function getServices(): array
  13. {
  14. return [
  15. UserProducerRepository::class
  16. ];
  17. }
  18. public function getRepository()
  19. {
  20. return new UserProducerRepository();
  21. }
  22. }