aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Contacts/IManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public/Contacts/IManager.php')
-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 7a80a35e045..f19e72e0763 100644
--- a/lib/public/Contacts/IManager.php
+++ b/lib/public/Contacts/IManager.php
@@ -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();