mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #40119 from summersab/refactor/OC-Server-getContactsManager
This commit is contained in:
commit
22f185473d
1 changed files with 1 additions and 1 deletions
|
|
@ -35,7 +35,7 @@ interface IManager {
|
|||
* Following function shows how to search for contacts for the name and the email address.
|
||||
*
|
||||
* public static function getMatchingRecipient($term) {
|
||||
* $cm = \OC::$server->getContactsManager();
|
||||
* $cm = \OCP\Server::get(\OCP\Contacts\IManager::class);
|
||||
* // The API is not active -> nothing to do
|
||||
* if (!$cm->isEnabled()) {
|
||||
* return array();
|
||||
|
|
|
|||
Loading…
Reference in a new issue