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