mirror of
https://github.com/nextcloud/server.git
synced 2024-07-25 13:54:59 +02:00
$key is not needed for registering contactsmanager callbacks
This commit is contained in:
parent
511816b878
commit
5c412f480c
@ -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…
Reference in New Issue
Block a user