Merge pull request #40119 from summersab/refactor/OC-Server-getContactsManager

This commit is contained in:
John Molakvoæ 2024-05-30 17:50:10 +02:00 committed by GitHub
commit 22f185473d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();