# ivyforms/0.3.1/backend/src/Config/repository.php

The Innovative Form Builder – IvyForms, version 0.3.1. 57 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/0.3.1/code/backend/src/Config/repository.php
- Raw: https://pluginprobe.com/plugins/ivyforms/0.3.1/raw/backend/src/Config/repository.php
- Modified: 2025-09-04T07:37:14+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/ivyforms/0.3.1/code/backend/src/Config/repository.php#L10-L20`.

```php
<?php

if (! defined('ABSPATH')) {
    exit; // Exit if accessed directly
}

use DI\Container;
use IvyForms\Repository\Confirmation\ConfirmationRepository;
use IvyForms\Repository\Confirmation\ConfirmationRepositoryInterface;
use IvyForms\Repository\Entry\EntryRepository;
use IvyForms\Repository\Entry\EntryRepositoryInterface;
use IvyForms\Repository\EntryField\EntryFieldRepository;
use IvyForms\Repository\EntryField\EntryFieldRepositoryInterface;
use IvyForms\Repository\Field\FieldRepository;
use IvyForms\Repository\Field\FieldRepositoryInterface;
use IvyForms\Repository\Form\FormRepository;
use IvyForms\Repository\Form\FormRepositoryInterface;
use IvyForms\Repository\Notification\NotificationRepository;
use IvyForms\Repository\Notification\NotificationRepositoryInterface;
use IvyForms\Services\InstallActions\DB\Confirmation\ConfirmationsTable;
use IvyForms\Services\InstallActions\DB\Entry\EntriesTable;
use IvyForms\Services\InstallActions\DB\EntryField\EntryFieldsTable;
use IvyForms\Services\InstallActions\DB\Field\FieldsTable;
use IvyForms\Services\InstallActions\DB\Form\FormsTable;
use IvyForms\Services\InstallActions\DB\Notification\NotificationsTable;

/** @var Container $container */
// @phpstan-ignore-next-line
$container->set(FormRepositoryInterface::class, static function () {
    return new FormRepository(FormsTable::getTableName());
});

// @phpstan-ignore class.notFound
$container->set(FieldRepositoryInterface::class, static function () {
    return new FieldRepository(FieldsTable::getTableName());
});

// @phpstan-ignore class.notFound
$container->set(NotificationRepositoryInterface::class, static function () {
    return new NotificationRepository(NotificationsTable::getTableName());
});

// @phpstan-ignore class.notFound
$container->set(ConfirmationRepositoryInterface::class, static function () {
    return new ConfirmationRepository(ConfirmationsTable::getTableName());
});

// @phpstan-ignore class.notFound
$container->set(EntryRepositoryInterface::class, static function () {
    return new EntryRepository(EntriesTable::getTableName());
});

// @phpstan-ignore class.notFound
$container->set(EntryFieldRepositoryInterface::class, static function () {
    return new EntryFieldRepository(EntryFieldsTable::getTableName());
});

```
