-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Typed events for db:add-missing-… #39487
Typed events for db:add-missing-… #39487
Conversation
Unrelated, but interesting: If you put your instance into maintenance mode to add missing indexes, apps cannot register their indexes because the app and event listener are not loaded, and the index is not added.1 Footnotes |
d83bb94
to
96b1af7
Compare
} | ||
); | ||
$eventDispatcher->addListener(AddMissingIndicesEvent::class, function (AddMissingIndicesEvent $event) { | ||
$event->addMissingIndex( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe move this out to a dedicated listener class for core?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we do that in a follow up? Just trying to get closer to #38546 ^_^
cleaning up the core application is something for another day
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for another day
Today?
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
492d612
to
ab70bbd
Compare
Docs in nextcloud/documentation#10858 |
Summary
IEventDispatcher
that allows to dispatch symfony'sGenericEvent
. However that one is also deprecated and will be dropped sooner or later. From my POV introducing yet another legacy layer is just too much (especially since I couldn't find any listeners), and dropping is the better option.Checklist