Skip to content

Commit

Permalink
Merge pull request #40119 from summersab/refactor/OC-Server-getContac…
Browse files Browse the repository at this point in the history
…tsManager
  • Loading branch information
skjnldsv authored May 30, 2024
2 parents db60aca + 3aab6b2 commit 22f1854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/public/Contacts/IManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 22f1854

Please sign in to comment.