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

Skip to content

[HttpFoundation] remove deprecated : FlashBag don't implement anymore IteratorAggregate #13258

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

Conversation

FlorianLB
Copy link

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets --
License MIT
Doc PR --


### HttpFoundation

* `Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface` don't implement anymore `\IteratorAggregate` interface
Copy link
Contributor

Choose a reason for hiding this comment

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

Should rather say:

Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface no longer implements the IteratorAggregate interface

Copy link
Contributor

Choose a reason for hiding this comment

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

Might be also good to suggest what should be done instead. For example:

Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface no longer implements the IteratorAggregate interface. Use the all() method instead of iterating over the flash bag.

Copy link
Member

Choose a reason for hiding this comment

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

it already does. #13060 added it.

@jakzal
Copy link
Contributor

jakzal commented Jan 7, 2015

This should also emit a deprecation warning in 2.7, right?

@FlorianLB
Copy link
Author

Changelog message improved.

* @return \ArrayIterator An \ArrayIterator instance
*/
public function getIterator()
{
Copy link
Member

Choose a reason for hiding this comment

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

Can you submit a PR to add a deprecation warning when used in 2.7? And the Changelog should also be updated in 2.7. Thanks.

Copy link
Author

Choose a reason for hiding this comment

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

Like @stof said, #13060 already add the deprecation warning.

Copy link
Contributor

Choose a reason for hiding this comment

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

@FlorianLB you'll need to rebase this PR. Deprecation warnings were already merged in and it conflicts with yours.

@FlorianLB FlorianLB force-pushed the remove-deprecated-flash-iterator-aggregate branch from 8173a99 to 879d7a4 Compare January 16, 2015 18:55
@FlorianLB
Copy link
Author

Changes rebased.

@fabpot
Copy link
Member

fabpot commented Jan 16, 2015

Thank you @FlorianLB.

fabpot added a commit that referenced this pull request Jan 16, 2015
…plement anymore IteratorAggregate (FlorianLB)

This PR was squashed before being merged into the 3.0-dev branch (closes #13258).

Discussion
----------

[HttpFoundation] remove deprecated : FlashBag don't implement anymore IteratorAggregate

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | --
| License       | MIT
| Doc PR        | --

Commits
-------

69a556d [HttpFoundation] remove deprecated : FlashBag don't implement anymore IteratorAggregate
@fabpot fabpot closed this Jan 16, 2015
@fabpot fabpot mentioned this pull request Nov 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants