<?php

namespace WeDevs\AppBridge\Integrations\Dokan\REST;

use WeDevs\AppBridge\Core\Contracts\SettingsSchemaInterface;
use WeDevs\AppBridge\Core\REST\AbstractSettingsController;
use WeDevs\AppBridge\Integrations\Dokan\LicenseManager;
use WeDevs\AppBridge\Integrations\Dokan\SettingsSchema;

class SettingsController extends AbstractSettingsController {

	protected $namespace = 'app-bridge/v1/vendor-app';

	protected $base = 'admin/settings';

	private LicenseManager $license_manager;

	public function __construct( LicenseManager $license_manager ) {
		$this->license_manager = $license_manager;
	}

	protected function schema(): SettingsSchemaInterface {
		return new SettingsSchema( $this->license_manager );
	}
}
