diff --git a/developer_manual/basics/storage/configuration.rst b/developer_manual/basics/storage/configuration.rst index 2d633f2a88b..4fa8a7f212d 100644 --- a/developer_manual/basics/storage/configuration.rst +++ b/developer_manual/basics/storage/configuration.rst @@ -43,13 +43,14 @@ The config that allows the app to set global, app and user settings can be injec System values ------------- -System values are saved in the :file:`config/config.php` and allow the app to modify and read the global configuration: +System values are saved in the :file:`config/config.php` and allow the app to modify and read the global configuration. Please note that **setSystemValue** might throw a **OCP\HintException** when the config file is read-only. .. code-block:: php config->setSystemValue($key, $value); + try { + $this->config->setSystemValue($key, $value); + } catch (HintException $e) { + // Handle exception, e.g. when config file is read-only + } } }