@@ 286-297 (lines=12) @@ | ||
283 | * |
|
284 | * @return mixed|null |
|
285 | */ |
|
286 | public function getConfig($key = null, $default = null) |
|
287 | { |
|
288 | if (is_null($key)) { |
|
289 | return $this->config->all(); |
|
290 | } |
|
291 | ||
292 | if ($this->config->has($key)) { |
|
293 | return $this->config[$key]; |
|
294 | } |
|
295 | ||
296 | return $default; |
|
297 | } |
|
298 | ||
299 | /** |
|
300 | * Get Base Uri. |
@@ 349-360 (lines=12) @@ | ||
346 | * |
|
347 | * @return mixed|null |
|
348 | */ |
|
349 | public function getConfig($key = null, $default = null) |
|
350 | { |
|
351 | if (is_null($key)) { |
|
352 | return $this->config->all(); |
|
353 | } |
|
354 | ||
355 | if ($this->config->has($key)) { |
|
356 | return $this->config[$key]; |
|
357 | } |
|
358 | ||
359 | return $default; |
|
360 | } |
|
361 | ||
362 | /** |
|
363 | * Get app id according to param type. |