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.

46 lines
978B

  1. <?php
  2. namespace common\logic\Producer;
  3. use common\logic\ContainerInterface;
  4. use common\services\Producer\ProducerBuilder;
  5. use common\services\Producer\ProducerFactory;
  6. use common\services\Producer\ProducerUtils;
  7. class ProducerContainer implements ContainerInterface
  8. {
  9. public function getEntityFqcn(): string
  10. {
  11. return ProducerModel::class;
  12. }
  13. public function getServices(): array
  14. {
  15. return [
  16. ProducerFactory::class,
  17. ProducerRepository::class,
  18. ProducerBuilder::class,
  19. ProducerUtils::class
  20. ];
  21. }
  22. public function getFactory(): ProducerFactory
  23. {
  24. return new ProducerFactory();
  25. }
  26. public function getRepository()
  27. {
  28. return new ProducerRepository();
  29. }
  30. public function getBuilder(): ProducerBuilder
  31. {
  32. return new ProducerBuilder();
  33. }
  34. public function getUtils(): ProducerUtils
  35. {
  36. return new ProducerUtils();
  37. }
  38. }