| @@ 281-292 (lines=12) @@ | ||
| 278 | * |
|
| 279 | * @return mixed|null |
|
| 280 | */ |
|
| 281 | public function getConfig($key = null, $default = null) |
|
| 282 | { |
|
| 283 | if (is_null($key)) { |
|
| 284 | return $this->config->all(); |
|
| 285 | } |
|
| 286 | ||
| 287 | if ($this->config->has($key)) { |
|
| 288 | return $this->config[$key]; |
|
| 289 | } |
|
| 290 | ||
| 291 | return $default; |
|
| 292 | } |
|
| 293 | ||
| 294 | /** |
|
| 295 | * Get Base Uri. |
|
| @@ 324-335 (lines=12) @@ | ||
| 321 | * |
|
| 322 | * @return mixed|null |
|
| 323 | */ |
|
| 324 | public function getConfig($key = null, $default = null) |
|
| 325 | { |
|
| 326 | if (is_null($key)) { |
|
| 327 | return $this->config->all(); |
|
| 328 | } |
|
| 329 | ||
| 330 | if ($this->config->has($key)) { |
|
| 331 | return $this->config[$key]; |
|
| 332 | } |
|
| 333 | ||
| 334 | return $default; |
|
| 335 | } |
|
| 336 | ||
| 337 | /** |
|
| 338 | * Get app id according to param type. |
|