]> git.mxchange.org Git - friendica.git/blobdiff - src/Console/AutomaticInstallation.php
spelling: cached
[friendica.git] / src / Console / AutomaticInstallation.php
index 85cfa710c8600b0b1647cc7f0a0995c5ed78d25e..1ce516e25f66484d5a3abd4630855243755a02d3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -100,12 +100,12 @@ Examples
 HELP;
        }
 
-       public function __construct(App\Mode $appMode, Cache $keyValueCache, IManageConfigValues $config, Database $dba, array $argv = null)
+       public function __construct(App\Mode $appMode, Cache $configCache, IManageConfigValues $config, Database $dba, array $argv = null)
        {
                parent::__construct($argv);
 
                $this->appMode     = $appMode;
-               $this->configCache = $keyValueCache;
+               $this->configCache = $configCache;
                $this->config      = $config;
                $this->dba         = $dba;
        }
@@ -199,8 +199,7 @@ HELP;
                                $this->out('The Friendica URL has to be set during CLI installation.');
                                return 1;
                        } else {
-                               $baseUrl = new BaseURL($this->config, []);
-                               $baseUrl->saveByURL($url);
+                               $configCache->set('system', 'url', $url);
                        }
 
                        $installer->createConfig($configCache);