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.

79 lines
1.8KB

  1. <?php
  2. namespace domain\Producer\Producer;
  3. use domain\_\AbstractModule;
  4. class ProducerModule extends AbstractModule
  5. {
  6. public function getServices(): array
  7. {
  8. return [
  9. ProducerDefinition::class,
  10. ProducerSolver::class,
  11. ProducerRepository::class,
  12. ProducerBuilder::class,
  13. ProducerNotifier::class,
  14. ProducerResolver::class,
  15. ProducerManager::class,
  16. ProducerPageSizer::class,
  17. DolibarrProducerUtils::class,
  18. ProducerSeoGenerator::class,
  19. ];
  20. }
  21. public function getDefinition(): ProducerDefinition
  22. {
  23. return ProducerDefinition::getInstance();
  24. }
  25. public function getSolver(): ProducerSolver
  26. {
  27. return ProducerSolver::getInstance();
  28. }
  29. public function getRepository(): ProducerRepository
  30. {
  31. return ProducerRepository::getInstance();
  32. }
  33. public function getBuilder(): ProducerBuilder
  34. {
  35. return ProducerBuilder::getInstance();
  36. }
  37. public function getNotifier(): ProducerNotifier
  38. {
  39. return ProducerNotifier::getInstance();
  40. }
  41. public function getResolver(): ProducerResolver
  42. {
  43. return ProducerResolver::getInstance();
  44. }
  45. public function getUtils(): ProducerManager
  46. {
  47. return ProducerManager::getInstance();
  48. }
  49. public function getManager(): ProducerManager
  50. {
  51. return ProducerManager::getInstance();
  52. }
  53. public function getProducerPageSizer(): ProducerPageSizer
  54. {
  55. return ProducerPageSizer::getInstance();
  56. }
  57. public function getDolibarrUtils(): DolibarrProducerUtils
  58. {
  59. return DolibarrProducerUtils::getInstance();
  60. }
  61. public function getSeoGenerator(): ProducerSeoGenerator
  62. {
  63. return ProducerSeoGenerator::getInstance();
  64. }
  65. }