Skip to content
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

Some more deprecated function calls are replaced #14157

Merged
merged 1 commit into from
May 14, 2024

Conversation

annando
Copy link
Collaborator

@annando annando commented May 14, 2024

Several more function calls are now replaced and some legacy functions are completely removed now.

Copy link
Collaborator

@MrPetovan MrPetovan left a comment

Choose a reason for hiding this comment

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

Good job, it looks like BaseModule could use a UserSession dependency, but it will take a fair bit of work to get it in given the inheritance graph.

@@ -24,6 +24,7 @@
use Friendica\App;
use Friendica\BaseModule;
use Friendica\Contact\LocalRelationship;
use Friendica\Contact\LocalRelationship\Entity\LocalRelationship as EntityLocalRelationship;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please rename the alias to LocalRelationshipEntity to satisfy the English order of qualifier.

Suggested change
use Friendica\Contact\LocalRelationship\Entity\LocalRelationship as EntityLocalRelationship;
use Friendica\Contact\LocalRelationship\Entity\LocalRelationship as LocalRelationshipEntity;

@MrPetovan MrPetovan added this to the 2024.06 milestone May 14, 2024
@annando
Copy link
Collaborator Author

annando commented May 14, 2024

Yeah, there will be some work to get rid of DI in these classes.

@MrPetovan MrPetovan merged commit a6f3c96 into friendica:develop May 14, 2024
4 of 9 checks passed
@annando annando deleted the deprecated2 branch May 14, 2024 19:29
* @deprecated 2022.03
* @see IHandleUserSessions::getLocalUserNickname()
*/
public function getLoggedInUserNickname(): string
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems to be used by the calendar, see #14025 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants