Diff: STRATO-apps/wordpress_03/app/wp-content/plugins/fluentform/boot/bindings.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 +
3 + use FluentForm\App\Services\FormBuilder\Components;
4 + use FluentForm\App\Services\FormBuilder\FormBuilder;
5 + use FluentForm\App\Services\WPAsync\FluentFormAsyncRequest;
6 +
7 + /**
8 + * Add only the plugin specific bindings here.
9 + *
10 + * $app
11 + * @var \FluentForm\Framework\Foundation\Application
12 + */
13 +
14 + // Bind the Form Builder to the App instance.
15 + $app->bind('formBuilder', function ($app) {
16 + return new FormBuilder($app);
17 + });
18 +
19 + $app->singleton('components', function($app) {
20 + return new Components(fluentformLoadFile('Services/FormBuilder/DefaultElements.php'));
21 + });
22 +
23 + $app->bind('fluentFormAsyncRequest', function ($app) {
24 + return new FluentFormAsyncRequest($app);
25 + });
26 +