Skip to content

Commit 730969c

Browse files
committed
Removed ExceptionHandler class, use ErrorHandler instead
1 parent 0d8f5fe commit 730969c

File tree

7 files changed

+4
-377
lines changed

7 files changed

+4
-377
lines changed

src/Symfony/Component/Debug/ExceptionHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
use Symfony\Component\Debug\Exception\OutOfMemoryException;
1616
use Symfony\Component\HttpKernel\Debug\FileLinkFormatter;
1717

18-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', ExceptionHandler::class, \Symfony\Component\ErrorHandler\ExceptionHandler::class), E_USER_DEPRECATED);
18+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', ExceptionHandler::class, \Symfony\Component\ErrorHandler\ErrorHandler::class), E_USER_DEPRECATED);
1919

2020
/**
2121
* ExceptionHandler converts an exception to a Response object.
@@ -31,7 +31,7 @@
3131
*
3232
* @final since Symfony 4.3
3333
*
34-
* @deprecated since Symfony 4.4, use Symfony\Component\ErrorHandler\ExceptionHandler instead.
34+
* @deprecated since Symfony 4.4, use Symfony\Component\ErrorHandler\ErrorHandler instead.
3535
*/
3636
class ExceptionHandler
3737
{

src/Symfony/Component/ErrorHandler/Debug.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public static function enable($errorReportingLevel = E_ALL, $displayErrors = tru
4444

4545
if (!\in_array(\PHP_SAPI, ['cli', 'phpdbg'], true)) {
4646
ini_set('display_errors', 0);
47-
ExceptionHandler::register();
4847
} elseif ($displayErrors && (!filter_var(ini_get('log_errors'), FILTER_VALIDATE_BOOLEAN) || ini_get('error_log'))) {
4948
// CLI - display errors only if they're not already logged to STDERR
5049
ini_set('display_errors', 1);

src/Symfony/Component/ErrorHandler/ExceptionHandler.php

Lines changed: 0 additions & 187 deletions
This file was deleted.

src/Symfony/Component/ErrorHandler/Tests/ExceptionHandlerTest.php

Lines changed: 0 additions & 145 deletions
This file was deleted.

src/Symfony/Component/ErrorHandler/Tests/MockExceptionHandler.php

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy