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

[FrameworkBundle] Fix compatibility with symfony/security-core 6.x (deps=high tests)#44427

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
fabpot merged 1 commit intosymfony:5.3fromwouterj:fix-high-deps
Dec 3, 2021

Conversation

@wouterj
Copy link
Member

@wouterjwouterj commentedDec 2, 2021
edited
Loading

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

Complete diff of this PR must be removed when upmerging to 6.0.

{
// @deprecated since Symfony 5.4
if (!class_exists(AnonymousToken::class)) {
$this->markTestSkipped('This test requires "symfony/security-core" <6.0.');
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

This test is irrelevant in 6.0, as anonymous tokens are removed and anonymous sessions are now null anyways (so no conversion is needed inAbstractController::getUser()).

$token =newUsernamePasswordToken($user,'pass','default', ['ROLE_USER']);
}else {
$token =newUsernamePasswordToken($user,'default', ['ROLE_USER']);
}
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Expected BC break, correct deprecations are triggered on 5.4.

// @deprecated since Symfony 5.4
if (method_exists($token,'setAuthenticated')) {
$token->setAuthenticated(true);
}
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The real bugfix of this PR, this adds support for security-core 6.0 in FrameworkBundle.

@fabpot
Copy link
Member

Thank you@wouterj.

@fabpotfabpot merged commit3fe93d6 intosymfony:5.3Dec 3, 2021
@wouterjwouterj deleted the fix-high-deps branchDecember 3, 2021 07:57
This was referencedDec 9, 2021
@fabpotfabpot mentioned this pull requestDec 29, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@chalasrchalasrchalasr approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.3

Development

Successfully merging this pull request may close these issues.

4 participants

@wouterj@fabpot@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp