aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Contacts
diff options
context:
space:
mode:
authorAndrew Summers <18727110+summersab@users.noreply.github.com>2023-08-29 17:28:27 -0500
committerAndrew Summers <18727110+summersab@users.noreply.github.com>2023-08-29 21:28:40 -0500
commit29d70d6b7571e7602c5e6854822d7345760b4b90 (patch)
tree4fcc5c3a4837417cff08018c4878113e88be87f2 /lib/public/Contacts
parent9d1547f59d53b46ba401ddf0e7f4c6e4f067004e (diff)
downloadnextcloud-server-29d70d6b7571e7602c5e6854822d7345760b4b90.tar.gz
nextcloud-server-29d70d6b7571e7602c5e6854822d7345760b4b90.zip
Refactor `OC\Server::getContactsManager`
Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
Diffstat (limited to 'lib/public/Contacts')
-rw-r--r--lib/public/Contacts/IManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/public/Contacts/IManager.php b/lib/public/Contacts/IManager.php
index 6ca349b95d0..fce09a19a33 100644
--- a/lib/public/Contacts/IManager.php
+++ b/lib/public/Contacts/IManager.php
@@ -56,7 +56,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 = \OC::$server->get(\OCP\Contacts\IManager::class);
* // The API is not active -> nothing to do
* if (!$cm->isEnabled()) {
* return array();