@@ 57-65 (lines=9) @@ | ||
54 | * |
|
55 | * @return \BFW\Request |
|
56 | */ |
|
57 | public static function getInstance() |
|
58 | { |
|
59 | if (self::$instance === null) { |
|
60 | $calledClass = get_called_class(); //Autorize extends this class |
|
61 | self::$instance = new $calledClass; |
|
62 | } |
|
63 | ||
64 | return self::$instance; |
|
65 | } |
|
66 | ||
67 | /** |
|
68 | * Get the client IP |
@@ 127-135 (lines=9) @@ | ||
124 | * |
|
125 | * @return \BFW\Application The current instance of this class |
|
126 | */ |
|
127 | public static function getInstance() |
|
128 | { |
|
129 | if (self::$instance === null) { |
|
130 | $calledClass = get_called_class(); //Autorize extends this class |
|
131 | self::$instance = new $calledClass; |
|
132 | } |
|
133 | ||
134 | return self::$instance; |
|
135 | } |
|
136 | ||
137 | /** |
|
138 | * Getter to access to cli property |