PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 4.3.13
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v4.3.13
6.2.13 6.2.12 6.2.10 6.2.11 6.2.9 6.2.8 6.2.7 6.2.6 6.2.5 6.2.4 6.2.3 6.2.2 3.6.22 3.6.31 3.6.40 3.6.41 3.6.42 3.6.50 3.6.51 3.6.60 3.6.61 3.6.62 3.6.64 3.6.65 3.6.66 All 195 releases
fluentform / app / Providers / FormBuilderProvider.php

FormBuilderProvider.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 4.3.13, at app/Providers/FormBuilderProvider.php

36 lines 871 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\App\Providers;
4
5 use FluentForm\Framework\Foundation\Provider;
6 use FluentForm\App\Services\FormBuilder\Components;
7 use FluentForm\App\Services\FormBuilder\FormBuilder;
8
9 class FormBuilderProvider extends Provider
10 {
11 /**
12 * The provider booting method to boot this provider
13 * @return void
14 */
15 public function booting()
16 {
17 $this->app->bindSingleton('components', function($app) {
18 $file = $app->appPath('Services/FormBuilder/DefaultElements.php');
19 return new Components($app->load($file));
20 }, 'Components');
21
22 $this->app->bind('formBuilder', function($app) {
23 return new FormBuilder($app);
24 }, 'FormBuilder');
25 }
26
27 /**
28 * The provider booted method to be called after booting
29 * @return void
30 */
31 public function booted()
32 {
33 // ...
34 }
35 }
36