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

Skip to content

[FrameworkBundle] improve usage of Table helper #14338

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
Apr 15, 2015

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Apr 13, 2015

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

Use the Table helper if present in favor of the deprecated
TableHelper class.

Use the `Table` helper if present in favor of the deprecated
`TableHelper` class.
@aitboudad
Copy link
Contributor

@xabbuh get('table'); what it should return in 3.0, an instance of table or it will be removed ?

@xabbuh
Copy link
Member Author

xabbuh commented Apr 13, 2015

@aitboudad It's deprecated, so imho it should be removed.

@aitboudad
Copy link
Contributor

@xabbuh deprecated only if it's an instance of TableHelper

@xabbuh
Copy link
Member Author

xabbuh commented Apr 13, 2015

@aitboudad That additional check was added to tackle the default helper set, but not breaking it for people using the helper set in another context IIRC.

@aitboudad
Copy link
Contributor

@xabbuh ok, thank you :)

@stof
Copy link
Member

stof commented Apr 13, 2015

@aitboudad get('table') can only return an helper. and making the table a stateful helper was precisely the design mistake leading to the deprecation of TableHelper.
So in 3.0, ->get('table') will throw an exception sayign that there is no table helper

@aitboudad
Copy link
Contributor

@stof this makes sense, thanks !

@fabpot
Copy link
Member

fabpot commented Apr 15, 2015

Thank you @xabbuh.

@fabpot fabpot merged commit 71d84e6 into symfony:2.6 Apr 15, 2015
fabpot added a commit that referenced this pull request Apr 15, 2015
This PR was merged into the 2.6 branch.

Discussion
----------

[FrameworkBundle] improve usage of Table helper

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

Use the `Table` helper if present in favor of the deprecated
`TableHelper` class.

Commits
-------

71d84e6 [FrameworkBundle] improve usage of Table helper
@xabbuh xabbuh deleted the console-helper branch April 15, 2015 17:04
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