Add configuration to Api.

This commit is contained in:
James Cole
2018-06-24 15:33:36 +02:00
parent 096af00a72
commit 5b0e61033c
4 changed files with 116 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ class FireflyConfig
*
* @return \FireflyIII\Models\Configuration|null
*/
public function get($name, $default = null)
public function get($name, $default = null): ?Configuration
{
$fullName = 'ff-config-' . $name;
if (Cache::has($fullName)) {