| @@ 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 |
|
| @@ 132-140 (lines=9) @@ | ||
| 129 | * |
|
| 130 | * @return \BFW\Application The current instance of this class |
|
| 131 | */ |
|
| 132 | public static function getInstance() |
|
| 133 | { |
|
| 134 | if (self::$instance === null) { |
|
| 135 | $calledClass = get_called_class(); //Autorize extends this class |
|
| 136 | self::$instance = new $calledClass; |
|
| 137 | } |
|
| 138 | ||
| 139 | return self::$instance; |
|
| 140 | } |
|
| 141 | ||
| 142 | /** |
|
| 143 | * Getter to access to cli property |
|