| 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 |
|