Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Ldap] Removed deprecated code#41363

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:6.0frommalteschlueter:6.0-ldap-deprecated
May 23, 2021
Merged

[Ldap] Removed deprecated code#41363

nicolas-grekas merged 1 commit intosymfony:6.0frommalteschlueter:6.0-ldap-deprecated
May 23, 2021

Conversation

@malteschlueter
Copy link
Contributor

@malteschluetermalteschlueter commentedMay 21, 2021
edited by derrabus
Loading

QA
Branch?6.0
Bug fix?no
New feature?no
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

This remove deprecated code from Ldap.

Do I have to update the upgrade log for the two method deletions or is it unnecessary because it's mentioned in the security?

@derrabus
Copy link
Member

Can you have a look at the Psalm error?

@malteschlueter
Copy link
ContributorAuthor

Can you have a look at the Psalm error?

I will revert the deletion of the methods. Probably it's better to delete it if somebody starts to clean up theUserInterface


$user =$passport->getUser();
if (!$userinstanceof PasswordAuthenticatedUserInterface) {
trigger_deprecation('symfony/ldap','5.3','Not implementing the "%s" interface in class "%s" while using password-based authenticators is deprecated.', PasswordAuthenticatedUserInterface::class,get_debug_type($user));
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Should this now also a exception?

Copy link
Member

Choose a reason for hiding this comment

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

IMHO it does not need to, we can just remove the deprecation here.
Reason for this notice to be here is that in order to removegetPassword() from the generic UserInterface, we needed to trigger deprecation notices from as much places as possible to make sure developers get it. Here we don't use anything fromPasswordAuthenticatedUserInterface so nothing to do.

malteschlueter reacted with thumbs up emoji
@derrabus
Copy link
Member

I will revert the deletion of the methods. Probably it's better to delete it if somebody starts to clean up theUserInterface

I think, deletinggetUsername() is fine. The Psalm error should be fixed by#41367.

@derrabus
Copy link
Member

Please rebase, I've merged my two PRs up.

malteschlueter reacted with thumbs up emoji

@wouterj
Copy link
Member

wouterj commentedMay 21, 2021
edited
Loading

Thanks for all the PRs!

I'm not sure if you were planning to, but I would propose to leave the security packages (other than this one) as-is for now. There is quite some deprecated code, as well as undeprecated but redundant code if we remove deprecation features. So we probably have to remove them per feature instead of per package. Let's make a plan when 5.3 is stable :)

derrabus, chalasr, and malteschlueter reacted with thumbs up emoji

@nicolas-grekas
Copy link
Member

Thank you@malteschlueter.

@nicolas-grekasnicolas-grekas merged commit1bdc2a2 intosymfony:6.0May 23, 2021
@fabpotfabpot mentioned this pull requestNov 5, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@derrabusderrabusderrabus approved these changes

@chalasrchalasrchalasr approved these changes

@wouterjwouterjAwaiting requested review from wouterjwouterj is a code owner

Assignees

No one assigned

Projects

None yet

Milestone

6.0

Development

Successfully merging this pull request may close these issues.

6 participants

@malteschlueter@derrabus@wouterj@nicolas-grekas@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp