Uh oh!
There was an error while loading. Please reload this page.
Move lib/ events to IEventDispatcher where possible - #39571
Conversation
457f1fd to
8fba3b4Compare| // notifications api to accept incoming user shares | ||
| $oldDispatcher->addListener('OCP\Share::postShare', function (OldGenericEvent $event) { | ||
| $dispatcher->addListener('OCP\Share::postShare', function ($event) { | ||
| if (!$event instanceof OldGenericEvent) { |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType
| }); | ||
| $oldDispatcher->addListener(IGroup::class . '::postAddUser', function (OldGenericEvent $event) { | ||
| $dispatcher->addListener(IGroup::class . '::postAddUser', function ($event) { | ||
| if (!$event instanceof OldGenericEvent) { |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType
| $userBackendRegisteredEvent = new UserBackendRegistered($userBackend, $userPluginManager); | ||
| $legacyDispatcher->dispatch('OCA\\User_LDAP\\User\\User::postLDAPBackendAdded', $userBackendRegisteredEvent); | ||
| $dispatcher->dispatch('OCA\\User_LDAP\\User\\User::postLDAPBackendAdded', $userBackendRegisteredEvent); |
Check notice
Code scanning / Psalm
DeprecatedMethod
| } | ||
| private function registerBackendDependents(IAppContainer $appContainer, EventDispatcherInterface $dispatcher) { | ||
| private function registerBackendDependents(IAppContainer $appContainer, IEventDispatcher $dispatcher) { |
Check notice
Code scanning / Psalm
MissingReturnType
| } | ||
| private function registerBackendDependents(IAppContainer $appContainer, EventDispatcherInterface $dispatcher) { | ||
| private function registerBackendDependents(IAppContainer $appContainer, IEventDispatcher $dispatcher) { |
Check notice
Code scanning / Psalm
DeprecatedInterface
8fba3b4 to
cd75dc0Comparest3iny
commented
Jul 26, 2023
Code is too deep for me. PHP CS check is unhappy though. |
1193b43 to
978cef9Compare
come-nc
left a comment
There was a problem hiding this comment.
Did you keep track of all removed legacy events to fill the upgrade documentation accordingly?
Uh oh!
There was an error while loading. Please reload this page.
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
…itionalScripts Signed-off-by: Joas Schilling <coding@schilljs.com>
… Manager 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>
978cef9 to
35c313eCompare
Yes, will send a PR once the last remaining events are migrated. Todo list is: And can also be rechecked with the links on #38546 (comment) afterwards |
nickvergessen
commented
Jul 28, 2023
Docs in nextcloud/documentation#10858 |
Checklist