Skip to content

[TwigBridge] remove deprecated features #22783

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

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented May 19, 2017

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

@xabbuh xabbuh added this to the 4.0 milestone May 19, 2017
@xabbuh xabbuh force-pushed the twig-bridge-remove-deprecated-features branch from 66825f2 to 2c1f1ce Compare May 19, 2017 18:02
private $engine;

public function __construct(TwigRendererEngineInterface $engine, CsrfTokenManagerInterface $csrfTokenManager = null)
public function __construct(TwigRendererEngine $engine, CsrfTokenManagerInterface $csrfTokenManager = null)
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't the typeint be in FormRendererEngineInterface ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure, shouldn't the Twig extension be sure that the underlying renderer engine supports Twig? By the way, if we did that change, that would mean that we could entirely drop the TwigRenderer class and use the parent AbstractRendererEngine class instead.

private $engine;

public function __construct(TwigRendererEngineInterface $engine, CsrfTokenManagerInterface $csrfTokenManager = null)
public function __construct(TwigRendererEngine $engine, CsrfTokenManagerInterface $csrfTokenManager = null)
{
parent::__construct($engine, $csrfTokenManager);

$this->engine = $engine;
Copy link
Member

Choose a reason for hiding this comment

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

you don't actually need this property, as it is now unused.

@xabbuh xabbuh force-pushed the twig-bridge-remove-deprecated-features branch from 2c1f1ce to 7ebf424 Compare May 19, 2017 20:24
@@ -17,25 +17,10 @@
/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class TwigRenderer extends FormRenderer implements TwigRendererInterface
class TwigRenderer extends FormRenderer
Copy link
Contributor

Choose a reason for hiding this comment

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

This class has no value anymore. Symfony\Component\Form\FormRenderer can be used directly now. So TwigRenderer should be deprecated and removed IMO.

Copy link
Contributor

Choose a reason for hiding this comment

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

@nicolas-grekas
Copy link
Member

@xabbuh would be great to finish this one, that's one of the two last PR removing deprecated features. Thanks!

@xabbuh
Copy link
Member Author

xabbuh commented Jul 17, 2017

@nicolas-grekas I think we should wait for #23437 to be able to remove the TwigRenderer class too.

fabpot added a commit that referenced this pull request Jul 17, 2017
This PR was merged into the 3.4 branch.

Discussion
----------

[TwigBridge] deprecate TwigRenderer

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #22783 (comment)
| License       | MIT
| Doc PR        |

<!--
- Bug fixes must be submitted against the lowest branch where they apply
  (lowest branches are regularly merged to upper ones so they get the fixes too).
- Features and deprecations must be submitted against the 3.4,
  legacy code removals go to the master branch.
- Please fill in this template according to the PR you're about to submit.
- Replace this comment by a description of what your PR is solving.
-->

Commits
-------

6ea71cb [TwigBridge] deprecate TwigRenderer
@fabpot
Copy link
Member

fabpot commented Jul 17, 2017

#23437 merged now :)

@xabbuh xabbuh force-pushed the twig-bridge-remove-deprecated-features branch from 7ebf424 to bfebf6a Compare July 17, 2017 14:02
@nicolas-grekas
Copy link
Member

rebase unlocked :)

@xabbuh xabbuh force-pushed the twig-bridge-remove-deprecated-features branch 5 times, most recently from 9cd55f5 to 4c3f90c Compare July 18, 2017 10:44
@xabbuh xabbuh force-pushed the twig-bridge-remove-deprecated-features branch from 4c3f90c to aae494c Compare July 18, 2017 11:03
@nicolas-grekas
Copy link
Member

Thank you @xabbuh.

@nicolas-grekas nicolas-grekas merged commit aae494c into symfony:master Jul 18, 2017
nicolas-grekas added a commit that referenced this pull request Jul 18, 2017
This PR was merged into the 4.0-dev branch.

Discussion
----------

[TwigBridge] remove deprecated features

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

Commits
-------

aae494c [TwigBridge] remove deprecated features
@xabbuh xabbuh deleted the twig-bridge-remove-deprecated-features branch July 18, 2017 11:06
@fabpot fabpot mentioned this pull request Oct 19, 2017
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.

6 participants