8000 [ErrorHandler] Symfony\Component\ErrorHandler\ExceptionHandler not exists. · Issue #12793 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

[ErrorHandler] Symfony\Component\ErrorHandler\ExceptionHandler not exists. #12793

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

Closed
subcores opened this issue Dec 10, 2019 · 2 comments
Closed
Milestone

Comments

@subcores
Copy link

The ExceptionHandler Class not exists in the symfony/error-handler package as discribed in https://symfony.com/doc/4.4/components/error_handler.html#debugging-uncaught-php-exceptions

@javiereguiluz javiereguiluz added this to the 4.4 milestone Dec 10, 2019
@javiereguiluz
Copy link
Member

@subcores thanks for reporting this!

@yceruto could you please confirm if the non-existent ExceptionHandler has been renamed to ErrorHandler? If this is true, could you please also confirm that, unlike the Debug component, the new ErrorHandler component uses just 1 class (ErrorHandler) for two different features (PHP errors and uncaught exceptions)? Thanks!

@yceruto
Copy link
Member
yceruto commented Dec 10, 2019

unlike the Debug component, the new ErrorHandler component uses just 1 class (ErrorHandler) for two different features (PHP errors and uncaught exceptions)? Thanks!

Yes.

https://symfony.com/doc/4.4/components/error_handler.html#debugging-uncaught-php-exceptions

The ExceptionHandler was removed in favor of ErrorHandler::handleException() + HtmlErrorRenderer classes. This is the replacement:

ErrorHandler::register();
7703

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0