Add settings.callbacks.get

This commit is contained in:
slawkens
2023-07-13 16:47:09 +02:00
parent e83880653a
commit afa1adb90b
3 changed files with 15 additions and 8 deletions

View File

@@ -434,6 +434,10 @@ class Settings implements ArrayAccess
}
}
if (isset($ret['callbacks']['get'])) {
$ret['value'] = $ret['callbacks']['get']($ret['value']);
}
$this->cache[$offset] = $ret;
return $ret;
}