1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <?php
- declare(strict_types=1);
- namespace OCA\UserStatus;
- use OCP\Capabilities\ICapability;
- use OCP\IEmojiHelper;
- class Capabilities implements ICapability {
- private IEmojiHelper $emojiHelper;
- public function __construct(IEmojiHelper $emojiHelper) {
- $this->emojiHelper = $emojiHelper;
- }
-
- public function getCapabilities() {
- return [
- 'user_status' => [
- 'enabled' => true,
- 'restore' => true,
- 'supports_emoji' => $this->emojiHelper->doesPlatformSupportEmoji(),
- ],
- ];
- }
- }
|