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.14 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 All 196 releases
fluentform / app / Services / wpfluent / libs / viocon / src / Viocon / AliasFacade.php

AliasFacade.php in Fluent Forms – Customizable Contact Forms, Survey, Quiz, & Conversational Form Builder 4.3.13, at app/Services/wpfluent/libs/viocon/src/Viocon/AliasFacade.php

47 lines 927 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php namespace Viocon;
2
3 /**
4 * This class gives the ability to access non-static methods statically
5 *
6 * Class AliasFacade
7 *
8 * @package Viocon
9 */
10 class AliasFacade {
11
12 /**
13 * @var Container
14 */
15 protected static $vioconInstance;
16
17 /**
18 * @param $method
19 * @param $args
20 *
21 * @return mixed
22 */
23 public static function __callStatic($method, $args)
24 {
25 if(!static::$vioconInstance) {
26 static::$vioconInstance = new Container();
27 }
28
29 return call_user_func_array(array(static::$vioconInstance, $method), $args);
30 }
31
32 /**
33 * @param Container $instance
34 */
35 public static function setVioconInstance(Container $instance)
36 {
37 static::$vioconInstance = $instance;
38 }
39
40 /**
41 * @return \Viocon\Container $instance
42 */
43 public static function getVioconInstance()
44 {
45 return static::$vioconInstance;
46 }
47 }