Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf(files_sharing): Move events to listener classes and registration instead of boot #44967

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Apr 22, 2024

Summary

There is no need to register event listeners in boot, instead they can be moved to the register method to be more lazy. For the two listeners that were pulling in dependencies (IRootFolder, IUserSession) those can be moved to dedicated listeners, so DI will only initialize those dependencies when actually needed.

There is still some stuff left that could be migrated separately (will require additional API changes for the mount providers for example), but those are the obvious and easy ones.

Checklist

@juliushaertl juliushaertl requested review from nickvergessen, a team, ArtificialOwl, yemkareems and sorbaugh and removed request for a team April 22, 2024 14:53
@juliushaertl juliushaertl added this to the Nextcloud 30 milestone Apr 22, 2024
… instead of boot

Signed-off-by: Julius Härtl <jus@bitgrid.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants