# ivyforms/1.5/backend/src/Config/container.php

The Innovative Form Builder – IvyForms, version 1.5. 37 lines.

- Page: https://pluginprobe.com/plugins/ivyforms/1.5/code/backend/src/Config/container.php
- Raw: https://pluginprobe.com/plugins/ivyforms/1.5/raw/backend/src/Config/container.php
- Modified: 2025-12-11T16:49: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/1.5/code/backend/src/Config/container.php#L10-L20`.

```php
<?php

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

/**
 * @copyright Â© Melograno Venture Studio. All rights reserved.
 * @licence   See LICENCE.md for license details.
 */

use IvyForms\Vendor\DI\ContainerBuilder;

$containerBuilder = new ContainerBuilder();

try {
    $container = $containerBuilder->build();
} catch (Exception $e) {
    // Handle the exception
    if (defined('WP_DEBUG') && WP_DEBUG) {
        error_log('Container build failed: ' . $e->getMessage());
    }
    exit('Container build failed. Please check the logs.');
}

/**
 * Set app settings
 */
//$container->set('settings', require('settings.php'));


require 'repository.php';

require 'services.php';

return $container;

```
