Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[TwigBridge] Fix BC break due required twig environment#24851

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
ro0NL wants to merge2 commits intosymfony:3.4fromro0NL:patch-1
Closed

[TwigBridge] Fix BC break due required twig environment#24851

ro0NL wants to merge2 commits intosymfony:3.4fromro0NL:patch-1

Conversation

@ro0NL
Copy link
Contributor

@ro0NLro0NL commentedNov 7, 2017
edited
Loading

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes/no
Fixed tickets#24236 (comment)
LicenseMIT
Doc PRsymfony/symfony-docs#...

Seeezsystems/ezplatform-design-engine#12 +silexphp/Silex-WebProfiler#126 +bolt/bolt#7154

Sorry for that :)

cc@fabpot

GwendolenLynch reacted with thumbs up emoji
private$computed;

publicfunction__construct(Profile$profile,Environment$twig)
publicfunction__construct(Profile$profile,Environment$twig =null)
Copy link
Member

Choose a reason for hiding this comment

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

Maybe passingnull should trigger a deprecation warning, so we can remove the boilerplate below on the 4.0 branch again.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

sounds reasonable :) lets see what others think.

Copy link
Member

Choose a reason for hiding this comment

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

No need to "deprecate" that as we are talking about an additional feature.

$template =$this->twig->load($name =$profile->getName());
}catch (\Twig_Error_Loader$e) {
$template =null;
if (null !==$this->twig) {

Choose a reason for hiding this comment

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

if (null === $this->twig) {return;}?
about the deprecation, too late IMHO if we want to be strict about the feat freeze

@nicolas-grekas
Copy link
Member

Thank you@ro0NL.

nicolas-grekas added a commit that referenced this pull requestNov 7, 2017
…o0NL)This PR was squashed before being merged into the 3.4 branch (closes#24851).Discussion----------[TwigBridge] Fix BC break due required twig environment| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes/no| Fixed tickets |#24236 (comment)| License       | MIT| Doc PR        | symfony/symfony-docs#... <!--highly recommended for new features-->Seeezsystems/ezplatform-design-engine#12 +silexphp/Silex-WebProfiler#126 +bolt/bolt#7154Sorry for that :)cc@fabpotCommits-------243e4b2 [TwigBridge] Fix BC break due required twig environment
@ro0NLro0NL deleted the patch-1 branchNovember 7, 2017 13:41
@GwendolenLynch
Copy link
Contributor

Much appreciated@ro0NL 👍

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@fabpotfabpotfabpot left review comments

@derrabusderrabusderrabus left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

@stofstofstof approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

8 participants

@ro0NL@nicolas-grekas@GwendolenLynch@fabpot@stof@derrabus@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp