No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

53 líneas
1.3KB

  1. <?php
  2. namespace domain\Setting;
  3. use domain\Setting\SettingDetails\Admin\AdminSettingDefinition;
  4. use domain\Setting\SettingDetails\Producer\ProducerSettingDefinition;
  5. use domain\_\AbstractModule;
  6. class SettingModule extends AbstractModule
  7. {
  8. public function getServices(): array
  9. {
  10. return [
  11. SettingDefinition::class,
  12. AdminSettingDefinition::class,
  13. ProducerSettingDefinition::class,
  14. SettingRepository::class,
  15. SettingBuilder::class,
  16. SettingImporter::class,
  17. AdminSettingBag::class
  18. ];
  19. }
  20. public function getDefinition(): SettingDefinition
  21. {
  22. return SettingDefinition::getInstance();
  23. }
  24. public function getAdminSettingDefinition(): AdminSettingDefinition
  25. {
  26. return AdminSettingDefinition::getInstance();
  27. }
  28. public function getProducerSettingDefinition(): ProducerSettingDefinition
  29. {
  30. return ProducerSettingDefinition::getInstance();
  31. }
  32. public function getRepository(): SettingRepository
  33. {
  34. return SettingRepository::getInstance();
  35. }
  36. public function getImporter(): SettingImporter
  37. {
  38. return SettingImporter::getInstance();
  39. }
  40. public function getAdminSettingBag(): AdminSettingBag
  41. {
  42. return AdminSettingBag::getInstance();
  43. }
  44. }