%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/app_api/lib/Migration/
Upload File :
Create Path :
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/app_api/lib/Migration/DataInitializationStep.php

<?php

declare(strict_types=1);

namespace OCA\AppAPI\Migration;

use OCA\AppAPI\DeployActions\AIODockerActions;

use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;

class DataInitializationStep implements IRepairStep {
	public function __construct(
		private readonly AIODockerActions     $AIODockerActions,
	) {
	}

	public function getName(): string {
		return 'Initializing data for AppAPI';
	}

	public function run(IOutput $output): void {
		// If in AIO - automatically register default DaemonConfig
		if ($this->AIODockerActions->isAIO()) {
			$output->info('AIO installation detected. Registering default daemon');
			if ($this->AIODockerActions->registerAIODaemonConfig() !== null) {
				$output->info('AIO DaemonConfig successfully registered');
			}
		}
	}
}

Zerion Mini Shell 1.0