mirror of
https://github.com/chenasraf/cospend-nc.git
synced 2026-05-18 01:39:06 +00:00
30 lines
548 B
PHP
30 lines
548 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\Cospend;
|
|
|
|
use OCA\Cospend\AppInfo\Application;
|
|
use OCP\App\IAppManager;
|
|
use OCP\Capabilities\IPublicCapability;
|
|
|
|
class Capabilities implements IPublicCapability {
|
|
|
|
public function __construct(
|
|
private IAppManager $appManager
|
|
) {
|
|
}
|
|
|
|
/**
|
|
* @return array<string, array<string, bool|string>>
|
|
*/
|
|
public function getCapabilities(): array {
|
|
$appVersion = $this->appManager->getAppVersion(Application::APP_ID);
|
|
return [
|
|
Application::APP_ID => [
|
|
'version' => $appVersion,
|
|
],
|
|
];
|
|
}
|
|
}
|