@@ 344-355 (lines=12) @@ | ||
341 | * |
|
342 | * @return mixed|null |
|
343 | */ |
|
344 | public function getConfig($key = null, $default = null) |
|
345 | { |
|
346 | if (is_null($key)) { |
|
347 | return $this->config->all(); |
|
348 | } |
|
349 | ||
350 | if ($this->config->has($key)) { |
|
351 | return $this->config[$key]; |
|
352 | } |
|
353 | ||
354 | return $default; |
|
355 | } |
|
356 | ||
357 | /** |
|
358 | * Get app id according to param type. |
@@ 280-291 (lines=12) @@ | ||
277 | * |
|
278 | * @return mixed|null |
|
279 | */ |
|
280 | public function getConfig($key = null, $default = null) |
|
281 | { |
|
282 | if (is_null($key)) { |
|
283 | return $this->config->all(); |
|
284 | } |
|
285 | ||
286 | if ($this->config->has($key)) { |
|
287 | return $this->config[$key]; |
|
288 | } |
|
289 | ||
290 | return $default; |
|
291 | } |
|
292 | ||
293 | /** |
|
294 | * Get Base Uri. |