PluginProbe
The Innovative Form Builder – IvyForms / 0.8
The Innovative Form Builder – IvyForms v0.8
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 1.2 1.3
ivyforms / backend / src / Config / services.php

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

58 lines 1.6 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
17 return [
18
19 MenuManager::class => function () {
20 return new MenuManager(
21 new MenuService(),
22 new MenuMapper()
23 );
24 },
25
26 PluginInstaller::class => function () {
27 return new PluginInstaller();
28 },
29
30 InstallPluginController::class => function ($container) {
31 return new InstallPluginController(
32 $container->get(PluginInstaller::class)
33 );
34 },
35
36 IntegrationRegistry::class => function () {
37 return new IntegrationRegistry();
38 },
39
40 IntegrationService::class => function ($container) {
41 return new IntegrationService(
42 $container->get(IntegrationRegistry::class)
43 );
44 },
45
46 // GetAllIntegrationsController::class => function ($container) {
47 // return new GetAllIntegrationsController(
48 // $container->get(IntegrationRegistry::class)
49 // );
50 // },
51 //
52 // GetIntegrationController::class => function ($container) {
53 // return new GetIntegrationController(
54 // $container->get(IntegrationRegistry::class)
55 // );
56 // },
57 ];
58