Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/Command/Daemon/RegisterDaemon.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use OCA\AppAPI\AppInfo\Application;
use OCA\AppAPI\Service\DaemonConfigService;

use OCP\IConfig;
use OCP\IAppConfig;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
Expand All @@ -23,7 +23,7 @@ class RegisterDaemon extends Command {

public function __construct(
private DaemonConfigService $daemonConfigService,
private IConfig $config,
private IAppConfig $config,
) {
parent::__construct();
}
Expand Down Expand Up @@ -120,7 +120,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}

if ($input->getOption('set-default')) {
$this->config->setAppValue(Application::APP_ID, 'default_daemon_config', $daemonConfig->getName());
$this->config->setValueString(Application::APP_ID, 'default_daemon_config', $daemonConfig->getName());
}

$output->writeln('Daemon successfully registered.');
Expand Down