-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Modernize the dav app #30335
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
Conversation
dd872a8 to
1a5c0d8
Compare
1a5c0d8 to
e9e7fff
Compare
| \OC::$server->getRequest(), | ||
| \OC::$server->getTwoFactorAuthManager(), | ||
| \OC::$server->getBruteForceThrottler(), | ||
| $userSession->getSession(), |
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 on OC\User\Session but not IUserSession.
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 an IUserSession.
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 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.
Ah yes, it's registered indeed
Lines 1353 to 1355 in 9026455
| $this->registerService(\OCP\ISession::class, function (ContainerInterface $c) { | |
| return $c->get(\OCP\IUserSession::class)->getSession(); | |
| }, false); |
| * @throws ContainerExceptionInterface | ||
| * @throws NotFoundExceptionInterface | ||
| */ | ||
| public function testGetQuotaInfoSpecific() { |
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 is the last test failing that I've no idea how to fix, since the call to getQuotaInfo goes deeply into legacy stuff.
896b71e to
6275668
Compare
6275668 to
8a48e68
Compare
proper listeners Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Except for BackgroundJobs Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
…pertiesIteratorForPath Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
registerCalendarProvider is now used Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
Signed-off-by: Thomas Citharel <[email protected]>
8a48e68 to
6d6008d
Compare
(This was built on top of #20766)