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] Review console.ERROR related behavior#22441

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:masterfromnicolas-grekas:console-error
Apr 26, 2017

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedApr 14, 2017
edited
Loading

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

This PR is a follow up of#18140 that I wanted to do since a few weeks.
It enhances this work with fixes and behavior changes.
It embeds#22435 and resolves issues like the one described in#20808.

phansys and chalasr reacted with thumbs up emoji
* @author James Halsall <james.t.halsall@googlemail.com>
* @author Robin Chalas <robin.chalas@gmail.com>
*
* @deprecated since version 3.3, to be removed in 4.0. Use ErrorListener instead.
Copy link
Member

Choose a reason for hiding this comment

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

This listener has been added in 3.3 (#21003), can be renamed directly :)

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

fixed, thanks

@nicolas-grekas
Copy link
MemberAuthor

👍 also :)

returnparent::getException();
$r =new \ReflectionProperty($this->error,'code');
$r->setAccessible(true);
$r->setValue($this->error,$this->exitCode);
Copy link
Member

Choose a reason for hiding this comment

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

why altering the exception ?

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

because the other part of the exception handling uses getCode as the way to set the exit status code from an exception

parent::__construct($command,$input,$output);

$this->exception =$exception;
$this->setException($exception);
Copy link
Member

Choose a reason for hiding this comment

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

useless change

@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@fabpotfabpot merged commita7c67c9 intosymfony:masterApr 26, 2017
fabpot added a commit that referenced this pull requestApr 26, 2017
…as-grekas)This PR was merged into the 3.3-dev branch.Discussion----------[Console] Review console.ERROR related behavior| Q             | A| ------------- | ---| Branch?       | 3.3| Bug fix?      | yes| New feature?  | yes| BC breaks?    | no| Deprecations? | yes| Tests pass?   | yes| Fixed tickets | -| License       | MIT| Doc PR        | -This PR is a follow up of#18140 that I wanted to do since a few weeks.It enhances this work with fixes and behavior changes.It embeds#22435 and resolves issues like the one described in#20808.- makes ConsoleErrorEvent *not* extend the deprecated ConsoleExceptionEvent- replace ConsoleErrorEvent::markErrorAsHandled by ConsoleErrorEvent::setExitCode- triggers the deprecation in a more appropriate moment- renames ExceptionListener to ErrorListener- tweaks the behavior in relation to#22435Commits-------a7c67c9 [Console] Review console.ERROR related behavior
@nicolas-grekasnicolas-grekas deleted the console-error branchApril 29, 2017 16:39
@fabpotfabpot mentioned this pull requestMay 1, 2017
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@chalasrchalasrchalasr left review comments

@stofstofstof requested changes

Assignees

No one assigned

Projects

None yet

Milestone

3.3

Development

Successfully merging this pull request may close these issues.

5 participants

@nicolas-grekas@fabpot@stof@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp