mirror of
https://github.com/nextcloud/app_api.git
synced 2026-01-13 20:19:21 +00:00
* removed property declaration/assigment * added "void" return type to subclasses of Command class. --------- Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
28 lines
482 B
PHP
28 lines
482 B
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,
|
|
];
|
|
}
|
|
}
|