Merge pull request #52427 from nextcloud/chore/dav/first-class-callable

refactor(dav): use first class callable syntax to boot the app
pull/52428/head
Richard Steinmetz 2025-04-25 20:31:06 +07:00 committed by GitHub
commit de23547ef9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 4 deletions

@ -228,10 +228,10 @@ class Application extends App implements IBootstrap {
// Load all dav apps
\OC_App::loadApps(['dav']);
$context->injectFn([$this, 'registerHooks']);
$context->injectFn([$this, 'registerContactsManager']);
$context->injectFn([$this, 'registerCalendarManager']);
$context->injectFn([$this, 'registerCalendarReminders']);
$context->injectFn($this->registerHooks(...));
$context->injectFn($this->registerContactsManager(...));
$context->injectFn($this->registerCalendarManager(...));
$context->injectFn($this->registerCalendarReminders(...));
}
public function registerHooks(