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