]> git.mxchange.org Git - friendica.git/blobdiff - src/Factory/ConfigFactory.php
codeblock updates
[friendica.git] / src / Factory / ConfigFactory.php
index 4ab20d1d565afcfbce1917cff9f136cd178a01be..269daea8b8d5514d6a19497a912dc43d54c50506 100644 (file)
@@ -25,7 +25,7 @@ class ConfigFactory
         *
         * @return Config\IConfigAdapter
         */
-       public static function createConfig($type, $config)
+       public static function createConfig($type, Config\IConfigCache $config)
        {
                if ($type == 'preload') {
                        return new Config\PreloadConfigAdapter($config);
@@ -36,15 +36,15 @@ class ConfigFactory
 
        /**
         * @param string               $type   The adapter type
-        * @param int                  $uid    The UID of the current user
         * @param Config\IPConfigCache $config The config cache of this adapter
+        * @param int                  $uid    The UID of the current user
         *
         * @return Config\IPConfigAdapter
         */
-       public static function createPConfig($type, $uid, $config)
+       public static function createPConfig($type, Config\IPConfigCache $config, $uid = null)
        {
                if ($type == 'preload') {
-                       return new Config\PreloadPConfigAdapter($uid, $config);
+                       return new Config\PreloadPConfigAdapter($config, $uid);
                } else {
                        return new Config\JITPConfigAdapter($config);
                }