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 / AppFacade.php

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

44 lines 901 B
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 Abstract class AppFacade
6 {
7 /**
8 * $instance Application
9 * @var FluentForm\Framework\Foundation\Application
10 */
11 static $instance = null;
12
13 /**
14 * Sets the app instance from Application
15 * @param FluentForm\Framework\Foundation\Application $instance
16 */
17 public static function setApplication($instance)
18 {
19 static::$instance = $instance;
20 }
21
22 /**
23 * Get the app instance stored earlier during the bootstrap
24 * @param FluentForm\Framework\Foundation\Application $instance
25 */
26 public static function getApplication()
27 {
28 return static::$instance;
29 }
30
31 /**
32 * Resolve the aliased class dynamically
33 * @param string $method
34 * @param string $params
35 * @return mixed
36 */
37 public static function __callStatic($method, $params)
38 {
39 return call_user_func_array([
40 static::$instance->make(static::$key), $method
41 ], $params);
42 }
43 }
44