[Pkg-owncloud-commits] [owncloud] 02/199: $key is not needed for registering contactsmanager callbacks

David Prévot taffit at moszumanska.debian.org
Sun Jun 1 18:53:00 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository owncloud.

commit 5c412f480cb885516a3bdd22f9b9e5f49394eec4
Author: Bart Visscher <bartv at thisnet.nl>
Date:   Thu Apr 10 18:06:31 2014 +0200

    $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(-)

diff --git a/lib/private/contactsmanager.php b/lib/private/contactsmanager.php
index fb0f938..0233845 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 005b71f..1387836 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list