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 / repository.php

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

60 lines 2.3 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
22 use IvyForms\Services\InstallActions\DB\FieldOptions\FieldOptionsTable;
23 use IvyForms\Services\InstallActions\DB\Form\FormsTable;
24 use IvyForms\Services\InstallActions\DB\Field\FieldsTable;
25 use IvyForms\Services\InstallActions\DB\Notification\NotificationsTable;
26 use IvyForms\Services\InstallActions\DB\Confirmation\ConfirmationsTable;
27 use IvyForms\Services\InstallActions\DB\Entry\EntriesTable;
28 use IvyForms\Services\InstallActions\DB\EntryField\EntryFieldsTable;
29
30 return [
31
32 FormRepositoryInterface::class => function () {
33 return new FormRepository(FormsTable::getTableName());
34 },
35
36 FieldRepositoryInterface::class => function () {
37 return new FieldRepository(FieldsTable::getTableName());
38 },
39
40 NotificationRepositoryInterface::class => function () {
41 return new NotificationRepository(NotificationsTable::getTableName());
42 },
43
44 ConfirmationRepositoryInterface::class => function () {
45 return new ConfirmationRepository(ConfirmationsTable::getTableName());
46 },
47
48 EntryRepositoryInterface::class => function () {
49 return new EntryRepository(EntriesTable::getTableName());
50 },
51
52 EntryFieldRepositoryInterface::class => function () {
53 return new EntryFieldRepository(EntryFieldsTable::getTableName());
54 },
55
56 FieldOptionsRepositoryInterface::class => function () {
57 return new FieldOptionsRepository(FieldOptionsTable::getTableName());
58 },
59 ];
60