1
0
mirror of https://github.com/nerzhul/ocsms.git synced 2025-06-06 15:36:12 +00:00

missing changes from last commit

This commit is contained in:
Loïc Blot 2018-12-10 13:57:45 +01:00
parent b7d929f425
commit 7ff55a4721
2 changed files with 48 additions and 4 deletions

View File

@ -22,12 +22,12 @@
<repository type="git">https://github.com/nextcloud/ocsms</repository>
<screenshot small-thumbnail="https://raw.githubusercontent.com/nextcloud/ocsms/master/appinfo/screenshots/1-small.png">https://raw.githubusercontent.com/nextcloud/ocsms/master/appinfo/screenshots/1.png</screenshot>
<fulltextsearch>
<provider>OCA\OcSms\Provider\FullTextSearchProvider</provider>
</fulltextsearch>
<fulltextsearch>
<provider>OCA\OcSms\Provider\FullTextSearchProvider</provider>
</fulltextsearch>
<repair-steps>
<post-migration>
<step>OCA\OcSms\Migration\FixConversationReadStates</step>
<step>OCA\OcSms\Migration\FixConversationReadStates</step>
</post-migration>
</repair-steps>
</info>

View File

@ -1,8 +1,52 @@
<?php
/**
* Nextcloud - Phone Sync
*
* This file is licensed under the Affero General Public License version 3 or
* later. See the COPYING file.
*
* @author Loic Blot <loic.blot@unix-experience.fr>
* @copyright Loic Blot 2014-2018
*/
namespace OCA\YourNameSpace\Provider;
use OCA\FullTextSearch\IFullTextSearchProvider;
class MyProvider implements IFullTextSearchProvider {
const OCSMS_PROVIDER_ID = 'ocsms';
/** @var IL10N */
private $l10n;
/** @var ConfigService */
private $configService;
/** @var FilesService */
private $filesService;
/** @var SearchService */
private $searchService;
/** @var MiscService */
private $miscService;
public function __construct(IL10N $l10n, ConfigService $configService,
FilesService $filesService,
SearchService $searchService, MiscService $miscService
) {
$this->l10n = $l10n;
$this->configService = $configService;
$this->filesService = $filesService;
$this->searchService = $searchService;
$this->miscService = $miscService;
}
/**
* return unique id of the provider
*/
public function getId(): string {
return self::OCSMS_PROVIDER_ID;
}
};
?>