Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpFoundation] deprecates FlashBag::getIterator() method #8611

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2013

Conversation

jfsimon
Copy link
Contributor

@jfsimon jfsimon commented Jul 30, 2013

This PR does not fix #8294 but this issue is not fixable. The FlashBag::getIterator() method actualy does not make any sense and is confusing. It should be removed. I just added a @deprecated tag and Will be removed in 3.0. message because removing it now would introduce a BC break. I guess issue #8294 can be closed after merge as it make not more sense than the incriminated method.

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #8294

fabpot added a commit that referenced this pull request Aug 2, 2013
This PR was merged into the master branch.

Discussion
----------

[HttpFoundation] deprecates FlashBag::getIterator() method

This PR does not fix #8294 but this issue is not fixable. The `FlashBag::getIterator()` method actualy does not make any sense and is confusing. It should be removed. I just added a `@deprecated` tag and `Will be removed in 3.0.` message because removing it now would introduce a BC break. I guess issue #8294 can be closed after merge as it make not more sense than the incriminated method.

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #8294

Commits
-------

ce8a7d6 [HttpFoundation] deprecated FlashBag::getIterator() method
@fabpot fabpot merged commit ce8a7d6 into symfony:master Aug 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

usage of Flashbag getIterator() clears flashes from stack
2 participants