From f3d2f257946e2a3c8791c1ba99b379acbe934fec Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 2 Dec 2018 23:31:40 +0100 Subject: namespacing: \Shaarli\Exceptions\IOException Signed-off-by: VirtualTam --- application/config/ConfigJson.php | 2 +- application/config/ConfigManager.php | 2 +- application/config/ConfigPhp.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'application/config') diff --git a/application/config/ConfigJson.php b/application/config/ConfigJson.php index 8c8d5610..4509357c 100644 --- a/application/config/ConfigJson.php +++ b/application/config/ConfigJson.php @@ -47,7 +47,7 @@ class ConfigJson implements ConfigIO $print = defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0; $data = self::getPhpHeaders() . json_encode($conf, $print) . self::getPhpSuffix(); if (!file_put_contents($filepath, $data)) { - throw new \IOException( + throw new \Shaarli\Exceptions\IOException( $filepath, t('Shaarli could not create the config file. '. 'Please make sure Shaarli has the right to write in the folder is it installed in.') diff --git a/application/config/ConfigManager.php b/application/config/ConfigManager.php index 32aaea48..e6c35073 100644 --- a/application/config/ConfigManager.php +++ b/application/config/ConfigManager.php @@ -207,7 +207,7 @@ class ConfigManager * * @throws MissingFieldConfigException: a mandatory field has not been provided in $conf. * @throws UnauthorizedConfigException: user is not authorize to change configuration. - * @throws \IOException: an error occurred while writing the new config file. + * @throws \Shaarli\Exceptions\IOException: an error occurred while writing the new config file. */ public function write($isLoggedIn) { diff --git a/application/config/ConfigPhp.php b/application/config/ConfigPhp.php index 9625fe1a..9ed5d31f 100644 --- a/application/config/ConfigPhp.php +++ b/application/config/ConfigPhp.php @@ -124,7 +124,7 @@ class ConfigPhp implements ConfigIO if (!file_put_contents($filepath, $configStr) || strcmp(file_get_contents($filepath), $configStr) != 0 ) { - throw new \IOException( + throw new \Shaarli\Exceptions\IOException( $filepath, t('Shaarli could not create the config file. '. 'Please make sure Shaarli has the right to write in the folder is it installed in.') -- cgit v1.2.3