mirror of
https://github.com/daledavies/jump.git
synced 2026-06-18 17:10:57 +02:00
Improve error handling and add detailed debugging option
This commit is contained in:
@@ -90,6 +90,7 @@ class Config {
|
||||
$this->config->set($key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if any configuration params are missing in the list loaded
|
||||
* from the config.php.
|
||||
@@ -121,6 +122,15 @@ class Config {
|
||||
return trim($this->config->get($key));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all config paramaters and values as an array.
|
||||
*
|
||||
* @return array Multidimensional array of config params.
|
||||
*/
|
||||
public function get_all(): array {
|
||||
return $this->config->toArray();
|
||||
}
|
||||
|
||||
/**
|
||||
* Attempt to converts a string to a boolean correctly, will return the parsed boolean
|
||||
* or null on failure.
|
||||
|
||||
Reference in New Issue
Block a user