PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 4.3.21
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v4.3.21
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 / framework / Foundation / AppProvider.php

AppProvider.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 4.3.21, at framework/Foundation/AppProvider.php

43 lines 1.1 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace FluentForm\Framework\Foundation;
4
5 use FluentForm\Framework\Foundation\Provider;
6
7 class AppProvider extends Provider
8 {
9 /**
10 * The provider booting method to boot this provider
11 * @return void
12 */
13 public function booting()
14 {
15 $this->app->bind(
16 'app', $this->app, 'App', 'FluentForm\Framework\Foundation\Application'
17 );
18
19 // Framework is booted and ready
20 $this->app->booted(function($app) {
21 $app->load($app->appPath('Global/Common.php'));
22 });
23 }
24
25 /**
26 * The provider booted method to be called after booting
27 * @return void
28 */
29 public function booted()
30 {
31 // Application is booted and ready
32 $this->app->ready(function($app) {
33 $app->load($app->appPath('Hooks/Common.php'));
34 if ($app->isUserOnAdminArea()) {
35 $app->load($app->appPath('Hooks/Ajax.php'));
36 $app->load($app->appPath('Hooks/Backend.php'));
37 } else {
38 $app->load($app->appPath('Hooks/Frontend.php'));
39 }
40 });
41 }
42 }
43