-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Modernize the dav app #30335
Closed
Closed
Modernize the dav app #30335
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c8c8f93
Move createSubscription and deleteSubscription event handlers to
tcitworld bfdfd3e
Remove uses of LegacyDispatcher for create/delete subscriptions
tcitworld dfa2cc3
Move every event to listeners and remove all uses of legacy dispatcher
tcitworld 10af3ab
Add tests for new Listeners
tcitworld 180e695
Remove usages of legacyDispatcher in CardDAVBackend
tcitworld ab07629
Update some depreciated calls
tcitworld 08abaae
Fix doctype of param passed to deleteContact
tcitworld 4827bc7
Improve OCA\DAV\Connector\Sabre\Principal
tcitworld aa7994f
Improve OCA\DAV\Tests\unit\CardDAV\AddressBookImplTest
tcitworld 3a3a1a0
Move uses of ILogger to LoggerInterface
tcitworld fed15f9
Move some events to IEventDispatcher
tcitworld c304561
Replace calls to Sabre's depreciated getPropertiesForPath with getPro…
tcitworld 981b99c
Remove more depreciated calls
tcitworld dcc9c70
Remove HookManager and replace with UserChangeListener
tcitworld 7a5f4af
Modernize endpoints
tcitworld d739f92
Modernize Sabre Connector
tcitworld 244aaa7
Add @template-implements metadata for listeners
tcitworld 57ddf28
Remove CalendarManager registration
tcitworld fccc89d
Various fixes
tcitworld 041526d
Improve tests
tcitworld 3d42336
Improve CommentsEntityEvent
tcitworld 9246d06
Use PHP 7.4 typed properties
tcitworld 6d6008d
Rebasing, cs and more typing
tcitworld File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
What's the recommended way to get the actual
ISession
object there?getSession
exists onOC\User\Session
but notIUserSession
.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.
does
\OC::$server->get(IUserSession::class)
work?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.
This needs an
ISession
, not anIUserSession
.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.
\OC::$server->get(ISession::class);
should workThere 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.
Ah yes, it's registered indeed
server/lib/private/Server.php
Lines 1353 to 1355 in 9026455