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

[TwigBundle] changed the runtime loader to return null if there is no match#20119

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

Merged
fabpot merged 1 commit intosymfony:masterfromfabpot:runtime-loader-logging
Oct 3, 2016

Conversation

@fabpot
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

ping@stof

linaori reacted with thumbs up emoji
@fabpotfabpotforce-pushed theruntime-loader-logging branch fromd7b912b toc03fd80CompareOctober 1, 2016 16:47
return$this->container->get($this->mapping[$class]);
if (null !==$this->logger) {
$this->logger->warning(sprintf('Class "%s" is not configured as a Twig runtime. Add the "twig.runtime" tag to the related service in the container.',$class));
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What about simply injecting a null/void logger if non is configured?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Because I don't like forcing using a Logger if not available.

@fabpotfabpot merged commitc03fd80 intosymfony:masterOct 3, 2016
fabpot added a commit that referenced this pull requestOct 3, 2016
… if there is no match (fabpot)This PR was merged into the 3.2-dev branch.Discussion----------[TwigBundle] changed the runtime loader to return null if there is no match| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aping@stofCommits-------c03fd80 [TwigBundle] changed the runtime loader to return null if there is no match
@fabpotfabpot deleted the runtime-loader-logging branchOctober 24, 2016 21:39
@fabpotfabpot mentioned this pull requestOct 27, 2016
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@linaorilinaorilinaori left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@fabpot@linaori@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp