* @var Config\Cache\ConfigCache
*/
private $configCache;
+
+ /**
+ * @var Config\Configuration
+ */
+ private $config;
+
/**
* @var Database
*/
HELP;
}
- public function __construct(App\Mode $appMode, Config\Cache\ConfigCache $configCache, Database $dba, array $argv = null)
+ public function __construct(App\Mode $appMode, Config\Cache\ConfigCache $configCache, Config\Configuration $config, Database $dba, array $argv = null)
{
parent::__construct($argv);
$this->appMode = $appMode;
$this->configCache =$configCache;
+ $this->config = $config;
$this->dba = $dba;
}
$this->out('The Friendica URL has to be set during CLI installation.');
return 1;
} else {
- $baseUrl = new BaseURL($basePathConf, []);
+ $baseUrl = new BaseURL($this->config, []);
$baseUrl->saveByURL($url);
}
// Install theme
$this->out("Installing theme\n");
- if (!empty($configCache->get('system', 'theme'))) {
- Theme::install($configCache->get('system', 'theme'));
+ if (!empty($this->config->get('system', 'theme'))) {
+ Theme::install($this->config->get('system', 'theme'));
$this->out(" Complete\n\n");
} else {
$this->out(" Theme setting is empty. Please check the file 'config/local.config.php'\n\n");