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

[Console] Initialize lazily to render exceptions properly#23909

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
chalasr merged 1 commit intosymfony:2.7fromnicolas-grekas:console-early-x
Aug 17, 2017

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?2.7
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets-
LicenseMIT
Doc PR-

When an exception occurs in the constructor of anApplication, exception handling is not yet set up.
This typically happens when the container cannot be build for some reason, where calling$this->add() builds the container and fails.

This PR makes initialization lazy so that it happens later on, when exception handling might be OK.

Before:
before

After:
after

Koc reacted with thumbs up emoji
@chalasr
Copy link
Member

Thank you@nicolas-grekas.

@chalasrchalasr merged commit62174fd intosymfony:2.7Aug 17, 2017
chalasr added a commit that referenced this pull requestAug 17, 2017
…(nicolas-grekas)This PR was merged into the 2.7 branch.Discussion----------[Console] Initialize lazily to render exceptions properly| Q             | A| ------------- | ---| Branch?       | 2.7| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -When an exception occurs in the constructor of an `Application`, exception handling is not yet set up.This typically happens when the container cannot be build for some reason, where calling `$this->add()` builds the container and fails.This PR makes initialization lazy so that it happens later on, when exception handling might be OK.Before:![before](https://user-images.githubusercontent.com/243674/29403397-7f7a1fce-8338-11e7-8e62-b6302ff0a65e.png)After:![after](https://user-images.githubusercontent.com/243674/29403403-83f7b5c0-8338-11e7-9a22-0c5ee702f1ff.png)Commits-------62174fd [Console] Initialize lazily to render exceptions properly
@nicolas-grekasnicolas-grekas deleted the console-early-x branchAugust 17, 2017 11:49
This was referencedAug 28, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@stofstofstof approved these changes

@chalasrchalasrchalasr approved these changes

+1 more reviewer

@ogizanagiogizanagiogizanagi approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

2.7

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@chalasr@stof@ogizanagi@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp