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

Introduce FlashBagAwareSessionInterface#46491

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:6.2fromVincentLanglet:flashBagAware
Jul 3, 2022

Conversation

@VincentLanglet
Copy link
Contributor

@VincentLangletVincentLanglet commentedMay 29, 2022
edited by GromNaN
Loading

QA
Branch?6.2
Bug fix?no
New feature?yes
Deprecations?no
TicketsFix#41765
LicenseMIT
Doc PRsymfony/symfony-docs#... Not needed

This solve#41765

People will be able to write

$session = $request->getSession();if ($session instanceof FlashBagAwareSessionInterface) {     $session->addFlashBag(...);}

This is better than ainstanceof Session check (which is not working with decoration).

michaljusiega, dmaicher, ging-dev, and th37rose reacted with thumbs up emoji
@VincentLanglet
Copy link
ContributorAuthor

I think the Ci failures are not related to this PR.

interface FlashBagAwareSessionInterface extends SessionInterface
{
/**
* Gets the flashbag interface.
Copy link
Member

Choose a reason for hiding this comment

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

not sure it's useful :)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

removed

@VincentLanglet
Copy link
ContributorAuthor

@nicolas-grekas Hi, do you have some time to take a look at this proposal ? Thanks =)

Copy link
Member

@fabpotfabpot left a comment

Choose a reason for hiding this comment

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

Sounds good to me.

VincentLanglet reacted with laugh emoji
@fabpot
Copy link
Member

Thank you@VincentLanglet.

@fabpotfabpot merged commit077d4c9 intosymfony:6.2Jul 3, 2022
fabpot added a commit that referenced this pull requestJul 4, 2022
…(VincentLanglet)This PR was squashed before being merged into the 6.2 branch.Discussion----------Add deprecation when the session is not FlashBagAware| Q             | A| ------------- | ---| Branch?       | 6.2| Bug fix?      | no| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->| Deprecations? | yes<!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->| Tickets       | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->| License       | MIT| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->Follow up of#46491Since there is now an interface for the `getFlashBag` method, we should add the check in the `addFlash` method.Commits-------76bb064 Add deprecation when the session is not FlashBagAware
@fabpotfabpot mentioned this pull requestOct 24, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot approved these changes

@chalasrchalasrAwaiting requested review from chalasr

Assignees

No one assigned

Projects

None yet

Milestone

6.2

Development

Successfully merging this pull request may close these issues.

[HttpFoundation] FlashbagAwareSessionInterface

4 participants

@VincentLanglet@fabpot@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp