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] Deprecate flashbag and attributebag services#36273

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

Conversation

warslett
Copy link
Contributor

QA
Branch?master
Bug fix?no
New feature?no
Deprecations?yes
TicketsRelated to#10557
Related to PR#36063
LicenseMIT

FlashBag and AttributeBag are data objects and so should not be available via the service container. The preferred method for accessing these objects is via
$session->getFlashBag() or$session->getAttributeBag()

sstok reacted with thumbs up emoji
@warslettwarslett changed the titleDeprecate flashbag and attributebag services[FrameworkBundle] Deprecate flashbag and attributebag servicesMar 30, 2020
@warslettwarslettforce-pushed thedeprecate-flashbag-and-attributebag-services branch from63fef32 to2e4bc95CompareMarch 30, 2020 18:55
@nicolas-grekasnicolas-grekas added this to thenext milestoneMar 31, 2020
Copy link
Member

@nicolas-grekasnicolas-grekas left a comment
edited
Loading

Choose a reason for hiding this comment

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

Thanks, just minor comments on my side.

@warslettwarslettforce-pushed thedeprecate-flashbag-and-attributebag-services branch fromf35df01 to4baed97CompareMarch 31, 2020 20:30
@warslett
Copy link
ContributorAuthor

rebased to resolve conflicts

@nicolas-grekas
Copy link
Member

nicolas-grekas commentedMar 31, 2020
edited
Loading

Actually, please rebase again to account for#35778, thanks :)

@warslett
Copy link
ContributorAuthor

@nicolas-grekas rebased and now using new deprecated attributes. Nice feature@atailouloute

@fabpot
Copy link
Member

Thank you@warslett.

@fabpotfabpotforce-pushed thedeprecate-flashbag-and-attributebag-services branch from298452a tof9b52feCompareApril 1, 2020 05:18
@fabpotfabpot merged commit09dcbfc intosymfony:masterApr 1, 2020
@warslettwarslett deleted the deprecate-flashbag-and-attributebag-services branchApril 1, 2020 05:47
@nicolas-grekasnicolas-grekas modified the milestones:next,5.1May 4, 2020
@fabpotfabpot mentioned this pull requestMay 5, 2020
@BackEndTea
Copy link
Contributor

I agree that this shouldn't be injected, however i'm running into an issue with this deprecation, namely:

TheSessionInterface does not have thegetFlashBag method that the Session does have. And theSession isnt' available for contsturcot injection, unlike the interface.

Maybe this method should be added to the interface?

apfelbox and MaximePinot reacted with thumbs up emoji

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@TobionTobionTobion approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
5.1
Development

Successfully merging this pull request may close these issues.

6 participants
@warslett@nicolas-grekas@fabpot@BackEndTea@Tobion@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp