File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ class JAPI
39
39
/**
40
40
* @var JAPI\Router
41
41
*/
42
- private $ obj_router = NULL ;
42
+ private static $ obj_router = NULL ;
43
43
44
44
/**
45
45
* @var JAPI\Logger
@@ -140,12 +140,12 @@ protected function jsonError($mix_message = NULL, $int_code = 500)
140
140
*
141
141
* @return JAPI\Router
142
142
*/
143
- public function getRouter ()
143
+ public static function getRouter ()
144
144
{
145
- if (NULL === $ this -> obj_router ) {
146
- $ this -> obj_router = new JAPI \Router ();
145
+ if (NULL === self :: $ obj_router ) {
146
+ self :: $ obj_router = new JAPI \Router ();
147
147
}
148
- return $ this -> obj_router ;
148
+ return self :: $ obj_router ;
149
149
}
150
150
151
151
/**
@@ -155,7 +155,7 @@ public function getRouter()
155
155
*/
156
156
public function setRouter (JAPI \Interfaces \Router $ obj_router )
157
157
{
158
- $ this -> obj_router = $ obj_router ;
158
+ self :: $ obj_router = $ obj_router ;
159
159
}
160
160
161
161
/**
You can’t perform that action at this time.
0 commit comments