|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <?php
-
- namespace domain\Setting;
-
- use domain\Setting\SettingDetails\Admin\AdminSettingDefinition;
- use domain\Setting\SettingDetails\Producer\ProducerSettingDefinition;
- use domain\_\AbstractModule;
-
- class SettingModule extends AbstractModule
- {
- public function getServices(): array
- {
- return [
- SettingDefinition::class,
- AdminSettingDefinition::class,
- ProducerSettingDefinition::class,
- SettingRepository::class,
- SettingBuilder::class,
- SettingImporter::class,
- AdminSettingBag::class
- ];
- }
-
- public function getDefinition(): SettingDefinition
- {
- return SettingDefinition::getInstance();
- }
-
- public function getAdminSettingDefinition(): AdminSettingDefinition
- {
- return AdminSettingDefinition::getInstance();
- }
-
- public function getProducerSettingDefinition(): ProducerSettingDefinition
- {
- return ProducerSettingDefinition::getInstance();
- }
-
- public function getRepository(): SettingRepository
- {
- return SettingRepository::getInstance();
- }
-
- public function getImporter(): SettingImporter
- {
- return SettingImporter::getInstance();
- }
-
- public function getAdminSettingBag(): AdminSettingBag
- {
- return AdminSettingBag::getInstance();
- }
- }
|