Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | no |
Symfony version | master |
The exception handling subsystem in Symfony’s HttpKernel does not support PHP 7 Throwables yet.
Changes
- Let
Symfony\Component\HttpKernel\HttpKernel::handle()
catchThrowable
- Invoke
Symfony\Component\HttpKernel\HttpKernel::handleException()
and passThrowable
- Change
Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
to allowThrowable
orException
- This is a BC break
⚠️
- This is a BC break
- Change
Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent
to hintException|Throwable
- This is a BC break
⚠️
- This is a BC break
- Change
Symfony\Component\HttpKernel\EventListener\ExceptionListener::onKernelException()
to catchThrowable
as well - Change
Symfony\Component\HttpKernel\EventListener\ExceptionListener::logException()
to acceptException
orThrowable
- This is a BC break
⚠️
- This is a BC break
- Change
Symfony\Component\HttpKernel\EventListener\ExceptionListener::duplicateRequest()
to acceptException
orThrowable
- This is a BC break
⚠️
- This is a BC break
- Change
Symfony\Component\HttpKernel\Fragment\InlineFragmentRenderer::render()
to handleThrowable
Anybody thinks that a bad idea? Anything I forgot? Feedback is more than welcome!