Skip to content

[HttpKernel] make ExceptionEvent able to propagate any throwable #34309

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2019

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Nov 10, 2019

Q A
Branch? 4.4
Bug fix? no
New feature? no
Deprecations? yes
Tickets -
License MIT
Doc PR -

An alternative to #34306.

As a reminder, the goal of this series of PRs is to remove the FatalThrowableError wrapper that we introduced to seamlessly handle throwables when they were introduced in PHP 7.

From the changelog of HttpKernel:

  • Deprecated methods ExceptionEvent::get/setException(), use get/setThrowable() instead
  • Deprecated class ExceptionListener, use ErrorListener instead

And the final target: removed Symfony\Component\ErrorHandler\Exception\ErrorException (FatalThrowableError is already deprecated.)

@fabpot
Copy link
Member

fabpot commented Nov 10, 2019

Thank you @nicolas-grekas.

fabpot added a commit that referenced this pull request Nov 10, 2019
… throwable (nicolas-grekas)

This PR was merged into the 4.4 branch.

Discussion
----------

[HttpKernel] make ExceptionEvent able to propagate any throwable

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | yes
| Tickets       | -
| License       | MIT
| Doc PR        | -

An alternative to #34306.

As a reminder, the goal of this series of PRs is to remove the `FatalThrowableError` wrapper that we introduced to seamlessly handle throwables when they were introduced in PHP 7.

From the changelog of `HttpKernel`:
 * Deprecated methods `ExceptionEvent::get/setException()`, use `get/setThrowable()` instead
 * Deprecated class `ExceptionListener`, use `ErrorListener` instead

And the final target: removed `Symfony\Component\ErrorHandler\Exception\ErrorException` (`FatalThrowableError` is already deprecated.)

Commits
-------

6f67f0e [HttpKernel] make ExceptionEvent able to propagate any throwable
@fabpot fabpot merged commit 6f67f0e into symfony:4.4 Nov 10, 2019
@nicolas-grekas nicolas-grekas deleted the hk-error branch November 10, 2019 14:18
xabbuh added a commit that referenced this pull request Nov 11, 2019
…bbuh)

This PR was merged into the 5.0-dev branch.

Discussion
----------

[Security] make ExceptionEvent handle all throwables

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       |
| License       | MIT
| Doc PR        |

fixes `master` after merging #34309 up

Commits
-------

eba2d8e make ExceptionEvent handle all throwables
This was referenced Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants