$key is not needed for registering contactsmanager callbacks

remotes/origin/ldap_group_count
Bart Visscher 11 years ago
parent 511816b878
commit 5c412f480c
  1. 5
      lib/private/contactsmanager.php
  2. 3
      lib/public/contacts/imanager.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;
}
/**

@ -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

Loading…
Cancel
Save