$key is not needed for registering contactsmanager callbacks

This commit is contained in:
Bart Visscher 2014-04-10 18:06:31 +02:00
parent 511816b878
commit 5c412f480c
2 changed files with 3 additions and 5 deletions

View File

@ -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;
}
/**

View File

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