Skip to content

Commit de23547

Browse files
authored
Merge pull request #52427 from nextcloud/chore/dav/first-class-callable
refactor(dav): use first class callable syntax to boot the app
2 parents 5f40fad + 109422f commit de23547

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

apps/dav/lib/AppInfo/Application.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,10 @@ public function boot(IBootContext $context): void {
228228
// Load all dav apps
229229
\OC_App::loadApps(['dav']);
230230

231-
$context->injectFn([$this, 'registerHooks']);
232-
$context->injectFn([$this, 'registerContactsManager']);
233-
$context->injectFn([$this, 'registerCalendarManager']);
234-
$context->injectFn([$this, 'registerCalendarReminders']);
231+
$context->injectFn($this->registerHooks(...));
232+
$context->injectFn($this->registerContactsManager(...));
233+
$context->injectFn($this->registerCalendarManager(...));
234+
$context->injectFn($this->registerCalendarReminders(...));
235235
}
236236

237237
public function registerHooks(

0 commit comments

Comments
 (0)