]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Install.php
Add System::htmlUpdateExit() method to refactor update modules
[friendica.git] / src / Module / Install.php
index e20d80f2055bb6351a57ddf02c5b36b38c692f7c..21510d206e3baa225caf2e16526b45ee6b1736ce 100644 (file)
@@ -1,11 +1,30 @@
 <?php
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Module;
 
 use Friendica\App;
 use Friendica\BaseModule;
 use Friendica\Core;
-use Friendica\Core\Config\Cache\ConfigCache;
+use Friendica\Core\Config\Cache;
 use Friendica\Core\Renderer;
 use Friendica\DI;
 use Friendica\Network\HTTPException;
@@ -332,13 +351,13 @@ class Install extends BaseModule
        /**
         * Checks the $_POST settings and updates the config Cache for it
         *
-        * @param ConfigCache $configCache The current config cache
+        * @param Cache       $configCache The current config cache
         * @param array       $post        The $_POST data
         * @param string      $cat         The category of the setting
         * @param string      $key         The key of the setting
         * @param null|string $default     The default value
         */
-       private static function checkSetting(ConfigCache $configCache, array $post, $cat, $key, $default = null)
+       private static function checkSetting(Cache $configCache, array $post, $cat, $key, $default = null)
        {
                $configCache->set($cat, $key,
                        Strings::escapeTags(