From 5c412f480cb885516a3bdd22f9b9e5f49394eec4 Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Thu, 10 Apr 2014 18:06:31 +0200 Subject: $key is not needed for registering contactsmanager callbacks --- lib/private/contactsmanager.php | 5 ++--- lib/public/contacts/imanager.php | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/private/contactsmanager.php b/lib/private/contactsmanager.php index fb0f938db36..02338453bec 100644 --- a/lib/private/contactsmanager.php +++ b/lib/private/contactsmanager.php @@ -143,12 +143,11 @@ namespace OC { * In order to improve lazy loading a closure can be registered which will be called in case * address books are actually requested * - * @param string $key * @param \Closure $callable */ - public function register($key, \Closure $callable) + public function register(\Closure $callable) { - $this->address_book_loaders[$key] = $callable; + $this->address_book_loaders[] = $callable; } /** diff --git a/lib/public/contacts/imanager.php b/lib/public/contacts/imanager.php index 005b71f298b..1387836573b 100644 --- a/lib/public/contacts/imanager.php +++ b/lib/public/contacts/imanager.php @@ -138,11 +138,10 @@ namespace OCP\Contacts { * In order to improve lazy loading a closure can be registered which will be called in case * address books are actually requested * - * @param string $key * @param \Closure $callable * @return void */ - function register($key, \Closure $callable); + function register(\Closure $callable); /** * @return array -- cgit v1.2.3