-
-
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
feat(dav): Emit a typed event to deprecate OCA\DAV\Connector\Sabre::addPlugin #39305
Conversation
8245c21
to
f2edad2
Compare
…ddPlugin Signed-off-by: Joas Schilling <coding@schilljs.com>
f2edad2
to
72667a6
Compare
Super nitpick suggestion: Rename SabrePluginAddEvent to SabrePluginAddPluginEvent To use the same "pattern" as for SabrePluginAuthInitEvent ;)
|
// allow setup of additional plugins | ||
$event = new \OCP\SabrePluginEvent($server); | ||
$dispatcher->dispatch('OCA\DAV\Connector\Sabre::addPlugin', $event); | ||
$event = new \OCA\DAV\Events\SabrePluginAddEvent($server); |
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.
$event = new \OCA\DAV\Events\SabrePluginAddEvent($server); | |
$typedEvent = new \OCA\DAV\Events\SabrePluginAddEvent($server); |
// allow setup of additional plugins | ||
$event = new \OCP\SabrePluginEvent($server); | ||
$dispatcher->dispatch('OCA\DAV\Connector\Sabre::addPlugin', $event); | ||
$event = new \OCA\DAV\Events\SabrePluginAddEvent($server); | ||
$dispatcher->dispatchTyped($event); |
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.
$dispatcher->dispatchTyped($event); | |
$dispatcher->dispatchTyped($typedEvent); |
I'll pass on this one with: https://docs.nextcloud.com/server/latest/developer_manual/basics/events.html#naming-scheme
|
Docs in nextcloud/documentation#10858 |
Checklist