Skip to content

Refactor OC\Server::getUserSession - #40129

Closed
summersab wants to merge 1 commit into
nextcloud:masterfrom
summersab:refactor/OC-Server-getUserSession
Closed

Refactor OC\Server::getUserSession#40129
summersab wants to merge 1 commit into
nextcloud:masterfrom
summersab:refactor/OC-Server-getUserSession

Conversation

@summersab

Copy link
Copy Markdown
Contributor

This PR refactors the deprecated method OC\Server::getUserSession and replaces it with OC\Server::get(\OCP\IUserSession::class) throughout the entire NC codebase (excluding ./apps and ./3rdparty).

Additionally, where necessary, the \OCP\IUserSession class is imported via the use directive.

Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
@summersab
summersabforce-pushed the refactor/OC-Server-getUserSession branch from 6c9d4b3 to a39bcbeCompareAugust 30, 2023 02:34
@solracsfsolracsf added the 3. to review Waiting for reviews label Aug 30, 2023
@solracsfsolracsf added this to the Nextcloud 28 milestone Aug 30, 2023

@ChristophWurstChristophWurst left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer replacing with \OCP\Server::get

@skjnldsvskjnldsv mentioned this pull request Nov 1, 2023
This was referenced Nov 6, 2023
This was referenced Nov 14, 2023
@blizzzblizzz modified the milestones: Nextcloud 28, Nextcloud 29Nov 23, 2023
@skjnldsvskjnldsv added the technical debt 🧱 🤔🚀 label Feb 23, 2024
This was referenced Mar 12, 2024
This was referenced Mar 20, 2024
@skjnldsvskjnldsv mentioned this pull request Mar 28, 2024
81 tasks
@skjnldsv

Copy link
Copy Markdown
Member

Too much conflicts, closing until this is done fresh again

@skjnldsvskjnldsv removed this from the Nextcloud 30 milestone Aug 14, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewstechnical debt🧱 🤔🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@summersab@skjnldsv@ChristophWurst@blizzz@solracsf