28 lines
492 B
PHP
28 lines
492 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\Notes;
|
|
|
|
use OCP\Capabilities\ICapability;
|
|
use OCP\App\IAppManager;
|
|
|
|
class Capabilities implements ICapability {
|
|
|
|
/** @var IAppManager */
|
|
private $appManager;
|
|
|
|
public function __construct(IAppManager $appManager) {
|
|
$this->appManager = $appManager;
|
|
}
|
|
|
|
public function getCapabilities() {
|
|
return [
|
|
'notes' => [
|
|
'api_version' => Application::$API_VERSIONS,
|
|
'version' => $this->appManager->getAppVersion('notes'),
|
|
],
|
|
];
|
|
}
|
|
}
|