PluginProbe
The Innovative Form Builder – IvyForms / 1.1.1
The Innovative Form Builder – IvyForms v1.1.1
1.5.1 1.5 1.4.1 1.4 trunk 0.1.2 0.2 0.2.1 0.3 0.3.1 0.4 0.5 0.6 0.6.1 0.6.1-backup 0.6.1.1 0.7 0.8 0.8.1 0.8.2 0.9 0.9.1 1.0 1.1 1.1.1 All 27 releases
ivyforms / backend / src / Config / services.php

services.php in The Innovative Form Builder – IvyForms 1.1.1, at backend/src/Config/services.php

90 lines 2.8 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) {
4 exit; // Exit if accessed directly
5 }
6
7 use IvyForms\Services\Menu\MenuManager;
8 use IvyForms\Services\Menu\MenuMapper;
9 use IvyForms\Services\Menu\MenuService;
10 use IvyForms\Services\Integrations\PluginInstaller;
11 use IvyForms\Services\Integrations\IntegrationRegistry;
12 use IvyForms\Services\Integrations\IntegrationService;
13 use IvyForms\Controllers\Integrations\InstallPluginController;
14 use IvyForms\Controllers\Integration\GetAllIntegrationsController;
15 use IvyForms\Controllers\Integration\GetIntegrationController;
16 use IvyForms\Controllers\Form\ExportFormController;
17 use IvyForms\Controllers\Form\ImportFormController;
18 use IvyForms\Services\Form\FormService;
19 use IvyForms\Services\Form\FormImportExportService;
20 use IvyForms\Services\Field\FieldService;
21 use IvyForms\Services\Notification\NotificationService;
22 use IvyForms\Services\Confirmation\ConfirmationService;
23 use IvyForms\Services\Submission\SubmissionDataFormatterService;
24
25 return [
26
27 MenuManager::class => function () {
28 return new MenuManager(
29 new MenuService(),
30 new MenuMapper()
31 );
32 },
33
34 PluginInstaller::class => function () {
35 return new PluginInstaller();
36 },
37
38 InstallPluginController::class => function ($container) {
39 return new InstallPluginController(
40 $container->get(PluginInstaller::class)
41 );
42 },
43
44 IntegrationRegistry::class => function () {
45 return new IntegrationRegistry();
46 },
47
48 IntegrationService::class => function ($container) {
49 return new IntegrationService(
50 $container->get(IntegrationRegistry::class)
51 );
52 },
53 SubmissionDataFormatterService::class => function () {
54 return new SubmissionDataFormatterService();
55 },
56
57 FormImportExportService::class => function ($container) {
58 return new FormImportExportService(
59 $container->get(FormService::class),
60 $container->get(FieldService::class),
61 $container->get(NotificationService::class),
62 $container->get(ConfirmationService::class)
63 );
64 },
65
66 ExportFormController::class => function ($container) {
67 return new ExportFormController(
68 $container->get(FormImportExportService::class)
69 );
70 },
71
72 ImportFormController::class => function ($container) {
73 return new ImportFormController(
74 $container->get(FormImportExportService::class)
75 );
76 },
77
78 // GetAllIntegrationsController::class => function ($container) {
79 // return new GetAllIntegrationsController(
80 // $container->get(IntegrationRegistry::class)
81 // );
82 // },
83 //
84 // GetIntegrationController::class => function ($container) {
85 // return new GetIntegrationController(
86 // $container->get(IntegrationRegistry::class)
87 // );
88 // },
89 ];
90