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] Make the TestBrowserToken interchangeable with other tokens#40368

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:5.2fromSeldaek:add_token_getfirewall
Mar 16, 2021

Conversation

@Seldaek
Copy link
Member

@SeldaekSeldaek commentedMar 5, 2021
edited
Loading

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

For some reason most tokens implement getFirewallName (and the deprecated getProviderKey), but not all. This adds it to TestBrowserToken because it caused issues in my tests when upgrading to Symfony 5'sClient::loginUser().

I am also happy to add this to AnonymousToken but I am more worried about BC impacts there, so I left it alone for now. All other token classes implement it, so I am not sure why this isn't in TokenInterface to begin with.

@carsonbotcarsonbot added this to the5.2 milestoneMar 5, 2021
@SeldaekSeldaek changed the title[FrameworkBundle] Make the TestBrowserToken interchangeable with othe…[FrameworkBundle] Make the TestBrowserToken interchangeable with other tokensMar 5, 2021
@wouterjwouterj self-requested a reviewMarch 5, 2021 10:24
@nicolas-grekas
Copy link
Member

Thank you@Seldaek.

@nicolas-grekasnicolas-grekas merged commitfaf7269 intosymfony:5.2Mar 16, 2021
@SeldaekSeldaek deleted the add_token_getfirewall branchMarch 16, 2021 09:27
nicolas-grekas added a commit that referenced this pull requestMar 23, 2021
…s serialized (kbond)This PR was merged into the 5.2 branch.Discussion----------[FrameworkBundle] ensure TestBrowserToken::$firewallName is serialized| Q             | A| ------------- | ---| Branch?       | 5.2| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Tickets       | n/a| License       | MIT| Doc PR        | n/aFixes a bug introduced in#40368. When `TestBrowserToken` in unserialized, `$firewallName` is `null` so trying to access it via `getFirewallName` throws a `TypeError`.Commits-------8ba12ec [FrameworkBundle] ensure TestBrowserToken::$firewallName is serialized
@fabpotfabpot mentioned this pull requestMar 29, 2021
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@chalasrchalasrchalasr approved these changes

@wouterjwouterjAwaiting requested review from wouterj

Assignees

No one assigned

Projects

None yet

Milestone

5.2

Development

Successfully merging this pull request may close these issues.

4 participants

@Seldaek@nicolas-grekas@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp