8000 [TwigBridge] Remove deprecated feature by maidmaid · Pull Request #23432 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[TwigBridge] Remove deprecated feature #23432

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

Closed
wants to merge 1 commit into from

Conversation

maidmaid
Copy link
Contributor
@maidmaid maidmaid commented Jul 6, 2017
Q A
Branch? master
Bug fix? no
New feature? no
BC breaks? yes
Deprecations? no
Tests pass? yes
Fixed tickets #20769 #20093
License MIT
Doc PR /

@maidmaid
Copy link
Contributor Author
maidmaid commented Jul 6, 2017

By removing this deprecations, the TwigRenderer becomes an empty class:

class TwigRenderer extends FormRenderer implements FormRendererInterface 
{
}

What about deprecate this class in favor of FormRenderer in 3.4?


/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
class TwigRenderer extends FormRenderer implements TwigRendererInterface
class TwigRenderer extends FormRenderer implements FormRendererInterface
Copy link
Contributor

Choose a reason for hiding this comment

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

FormRendererInterface is already implemented by FormRenderer

@xabbuh
Copy link
Member
xabbuh commented Jul 6, 2017

Duplicate of #22783? :)

*/
public function setEnvironment(Environment $environment)
{
$this->engine->setEnvironment($environment);
Copy link
Contributor

Choose a reason for hiding this comment

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

The engine property can be removed in earlier versions as this can be placed by $this->getEngine()->setEnvironment() or am I missing something?

@maidmaid
Copy link
Contributor Author
maidmaid commented Jul 6, 2017

@xabbuh exact duplicate 😳 sorry!

@maidmaid maidmaid closed this Jul 6, 2017
@Tobion
Copy link
Contributor
Tobion commented Jul 6, 2017

@xabbuh that explains why I had a dejavu when reviewing this ^^

@maidmaid maidmaid deleted the twig-bridge-4 branch July 6, 2017 12:16
nicolas-grekas added a commit that referenced this pull request Jul 13, 2017
…(Tobion)

This PR was merged into the 2.7 branch.

Discussion
----------

[TwigBridge] cleaner implementation of the TwigRenderer

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no <!-- don't forget updating src/**/CHANGELOG.md files -->
| BC breaks?    | no
| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->
| Tests pass?   | yes
| Fixed tickets | #23432 (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
-------

c7c5ba8 [TwigBridge] cleaner implementation of the TwigRenderer
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
0