PluginProbe
The Innovative Form Builder – IvyForms / 1.5
The Innovative Form Builder – IvyForms v1.5
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
← All changes | backend/src/Config/container.php +36 -0 0.6.1 → 1.5 View file →
@@ -1,0 +1,36 @@
1 +<?php
2 +
3 +if (! defined('ABSPATH')) {
4 + exit; // Exit if accessed directly
5 +}
6 +
7 +/**
8 + * @copyright © Melograno Venture Studio. All rights reserved.
9 + * @licence See LICENCE.md for license details.
10 + */
11 +
12 +use IvyForms\Vendor\DI\ContainerBuilder;
13 +
14 +$containerBuilder = new ContainerBuilder();
15 +
16 +try {
17 + $container = $containerBuilder->build();
18 +} catch (Exception $e) {
19 + // Handle the exception
20 + if (defined('WP_DEBUG') && WP_DEBUG) {
21 + error_log('Container build failed: ' . $e->getMessage());
22 + }
23 + exit('Container build failed. Please check the logs.');
24 +}
25 +
26 +/**
27 + * Set app settings
28 + */
29 +//$container->set('settings', require('settings.php'));
30 +
31 +
32 +require 'repository.php';
33 +
34 +require 'services.php';
35 +
36 +return $container;