~cypheon/nextcloud-chores-app

nextcloud-chores-app/lib/Capabilities.php -rw-r--r-- 495 bytes
d19a6603 — Johann Rudloff Make overdue sidebar badge dynamic, switch badges to `CounterBubble` component 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php

namespace OCA\Chores;

use OCP\App\IAppManager;
use OCP\Capabilities\ICapability;

class Capabilities implements ICapability {

  /** @var IAppManager */
  private $appManager;

  public function __construct(IAppManager $appManager) {
    $this->appManager = $appManager;
  }

  public function getCapabilities() {
    return [
      'chores' => [
        'version' => $this->appManager->getAppVersion('chores'),
        'apiVersions' => [
          '1.0',
        ]
      ]
    ];
  }
}