]> git.mxchange.org Git - friendica.git/blobdiff - src/Factory/ConfigFactory.php
Fix notices
[friendica.git] / src / Factory / ConfigFactory.php
index 585d6eb7eed192f9acf9b84ae7ed919ca7b60e02..9a20100b2fe6da880d4877171c88c1c18a25b38a 100644 (file)
@@ -1,7 +1,27 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2021, the Friendica project
+ *
+ * @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\Factory;
 
+use Exception;
 use Friendica\Core\Config;
 use Friendica\Core\Config\Cache;
 use Friendica\Model\Config\Config as ConfigModel;
@@ -14,11 +34,13 @@ class ConfigFactory
         * @param ConfigFileLoader $loader The Config Cache loader (INI/config/.htconfig)
         *
         * @return Cache
+        *
+        * @throws Exception
         */
-       public function createCache(ConfigFileLoader $loader)
+       public function createCache(ConfigFileLoader $loader, array $server = [])
        {
                $configCache = new Cache();
-               $loader->setupCache($configCache);
+               $loader->setupCache($configCache, $server);
 
                return $configCache;
        }