Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #23909 [Console] Initialize lazily to render exceptions properly …
…(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
- Loading branch information
Showing
1 changed file
with
35 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters