PluginProbe
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder / 1.2.4
Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder v1.2.4
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 1.2.4, at framework/Foundation/AppProvider.php

44 lines 1.2 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
20 /**
21 * The provider booted method to be called after booting
22 * @return void
23 */
24 public function booted()
25 {
26 // Framework is booted and ready
27 $this->app->booted(function($app) {
28 $app->load($app->appPath('Global/Common.php'));
29 $app->bootstrapWith($app->getCommonProviders());
30 });
31
32 // Application is booted and ready
33 $this->app->ready(function($app) {
34 $app->load($app->appPath('Hooks/Common.php'));
35 if ($app->isUserOnAdminArea()) {
36 $app->load($app->appPath('Hooks/Backend.php'));
37 } else {
38 $app->load($app->appPath('Hooks/Frontend.php'));
39 }
40 $app->load($app->appPath('Hooks/Ajax.php'));
41 });
42 }
43 }
44