| @@ 100-109 (lines=10) @@ | ||
| 97 | * |
|
| 98 | * @return Support |
|
| 99 | */ |
|
| 100 | public static function create(Config $config) |
|
| 101 | { |
|
| 102 | if ('cli' === php_sapi_name() || !(self::$instance instanceof self)) { |
|
| 103 | self::$instance = new self($config); |
|
| 104 | ||
| 105 | self::setDevKey(); |
|
| 106 | } |
|
| 107 | ||
| 108 | return self::$instance; |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * getInstance. |
|
| @@ 89-96 (lines=8) @@ | ||
| 86 | * |
|
| 87 | * @return Support |
|
| 88 | */ |
|
| 89 | public static function create(Config $config) |
|
| 90 | { |
|
| 91 | if ('cli' === php_sapi_name() || !(self::$instance instanceof self)) { |
|
| 92 | self::$instance = new self($config); |
|
| 93 | } |
|
| 94 | ||
| 95 | return self::$instance; |
|
| 96 | } |
|
| 97 | ||
| 98 | /** |
|
| 99 | * getInstance. |
|