@@ 342-353 (lines=12) @@ | ||
339 | * |
|
340 | * @return mixed|null |
|
341 | */ |
|
342 | public function getConfig($key = null, $default = null) |
|
343 | { |
|
344 | if (is_null($key)) { |
|
345 | return $this->config->all(); |
|
346 | } |
|
347 | ||
348 | if ($this->config->has($key)) { |
|
349 | return $this->config[$key]; |
|
350 | } |
|
351 | ||
352 | return $default; |
|
353 | } |
|
354 | ||
355 | /** |
|
356 | * Get app id according to param type. |
@@ 300-311 (lines=12) @@ | ||
297 | * |
|
298 | * @return mixed|null |
|
299 | */ |
|
300 | public function getConfig($key = null, $default = null) |
|
301 | { |
|
302 | if (is_null($key)) { |
|
303 | return $this->config->all(); |
|
304 | } |
|
305 | ||
306 | if ($this->config->has($key)) { |
|
307 | return $this->config[$key]; |
|
308 | } |
|
309 | ||
310 | return $default; |
|
311 | } |
|
312 | ||
313 | /** |
|
314 | * Get Base Uri. |