PluginProbe
The Innovative Form Builder – IvyForms / 1.4
The Innovative Form Builder – IvyForms v1.4
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 / repository.php

repository.php in The Innovative Form Builder – IvyForms 1.4, at backend/src/Config/repository.php

67 lines 2.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\Repository\FieldOptions\FieldOptionsRepository;
8 use IvyForms\Repository\FieldOptions\FieldOptionsRepositoryInterface;
9 use IvyForms\Repository\Form\FormRepository;
10 use IvyForms\Repository\Form\FormRepositoryInterface;
11 use IvyForms\Repository\Field\FieldRepository;
12 use IvyForms\Repository\Field\FieldRepositoryInterface;
13 use IvyForms\Repository\Notification\NotificationRepository;
14 use IvyForms\Repository\Notification\NotificationRepositoryInterface;
15 use IvyForms\Repository\Confirmation\ConfirmationRepository;
16 use IvyForms\Repository\Confirmation\ConfirmationRepositoryInterface;
17 use IvyForms\Repository\Entry\EntryRepository;
18 use IvyForms\Repository\Entry\EntryRepositoryInterface;
19 use IvyForms\Repository\EntryField\EntryFieldRepository;
20 use IvyForms\Repository\EntryField\EntryFieldRepositoryInterface;
21 use IvyForms\Repository\GoogleSheets\GoogleSheetsRepository;
22 use IvyForms\Repository\GoogleSheets\GoogleSheetsRepositoryInterface;
23
24 use IvyForms\Services\InstallActions\DB\FieldOptions\FieldOptionsTable;
25 use IvyForms\Services\InstallActions\DB\GoogleSheets\GoogleSheetsTable;
26 use IvyForms\Services\InstallActions\DB\Form\FormsTable;
27 use IvyForms\Services\InstallActions\DB\Field\FieldsTable;
28 use IvyForms\Services\InstallActions\DB\Notification\NotificationsTable;
29 use IvyForms\Services\InstallActions\DB\Confirmation\ConfirmationsTable;
30 use IvyForms\Services\InstallActions\DB\Entry\EntriesTable;
31 use IvyForms\Services\InstallActions\DB\EntryField\EntryFieldsTable;
32
33 return [
34
35 FormRepositoryInterface::class => function () {
36 return new FormRepository(FormsTable::getTableName());
37 },
38
39 FieldRepositoryInterface::class => function () {
40 return new FieldRepository(FieldsTable::getTableName());
41 },
42
43 NotificationRepositoryInterface::class => function () {
44 return new NotificationRepository(NotificationsTable::getTableName());
45 },
46
47 ConfirmationRepositoryInterface::class => function () {
48 return new ConfirmationRepository(ConfirmationsTable::getTableName());
49 },
50
51 EntryRepositoryInterface::class => function () {
52 return new EntryRepository(EntriesTable::getTableName());
53 },
54
55 EntryFieldRepositoryInterface::class => function () {
56 return new EntryFieldRepository(EntryFieldsTable::getTableName());
57 },
58
59 FieldOptionsRepositoryInterface::class => function () {
60 return new FieldOptionsRepository(FieldOptionsTable::getTableName());
61 },
62
63 GoogleSheetsRepositoryInterface::class => function () {
64 return new GoogleSheetsRepository(GoogleSheetsTable::getTableName());
65 },
66 ];
67