Skip to content
Permalink
Browse files

[Debug] Restoring back the state of the Debug component (1st step)

  • Loading branch information
yceruto authored and nicolas-grekas committed Jul 4, 2019
1 parent d028936 commit 0c641fce1aeda1c6970ab2ddcb62f9da10ccc332
Showing with 3,690 additions and 98 deletions.
  1. +0 −4 BufferingLogger.php
  2. +1 −8 CHANGELOG.md
  3. +0 −4 Debug.php
  4. +1 −1 DebugClassLoader.php
  5. +697 −5 ErrorHandler.php
  6. +19 −6 Exception/ClassNotFoundException.php
  7. +60 −6 Exception/FatalErrorException.php
  8. +34 −6 Exception/FatalThrowableError.php
  9. +343 −7 Exception/FlattenException.php
  10. +4 −6 Exception/OutOfMemoryException.php
  11. +50 −6 Exception/SilencedErrorContext.php
  12. +19 −6 Exception/UndefinedFunctionException.php
  13. +19 −6 Exception/UndefinedMethodException.php
  14. +448 −5 ExceptionHandler.php
  15. +175 −5 FatalErrorHandler/ClassNotFoundFatalErrorHandler.php
  16. +14 −5 FatalErrorHandler/FatalErrorHandlerInterface.php
  17. +66 −5 FatalErrorHandler/UndefinedFunctionFatalErrorHandler.php
  18. +48 −5 FatalErrorHandler/UndefinedMethodFatalErrorHandler.php
  19. +563 −0 Tests/ErrorHandlerTest.php
  20. +391 −0 Tests/Exception/FlattenExceptionTest.php
  21. +145 −0 Tests/ExceptionHandlerTest.php
  22. +176 −0 Tests/FatalErrorHandler/ClassNotFoundFatalErrorHandlerTest.php
  23. +81 −0 Tests/FatalErrorHandler/UndefinedFunctionFatalErrorHandlerTest.php
  24. +76 −0 Tests/FatalErrorHandler/UndefinedMethodFatalErrorHandlerTest.php
  25. +22 −0 Tests/Fixtures/ErrorHandlerThatUsesThePreviousOne.php
  26. +15 −0 Tests/Fixtures/LoggerThatSetAnErrorHandler.php
  27. +5 −0 Tests/Fixtures/PEARClass.php
  28. +24 −0 Tests/Fixtures/ToStringThrower.php
  29. +7 −0 Tests/Fixtures2/RequiredTwice.php
  30. +38 −0 Tests/HeaderMock.php
  31. +24 −0 Tests/MockExceptionHandler.php
  32. +47 −0 Tests/phpt/decorate_exception_hander.phpt
  33. +35 −0 Tests/phpt/exception_rethrown.phpt
  34. +42 −0 Tests/phpt/fatal_with_nested_handlers.phpt
  35. +1 −2 composer.json
@@ -11,16 +11,12 @@
namespace Symfony\Component\Debug;
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4 and will be removed in 5.0.', BufferingLogger::class), E_USER_DEPRECATED);
use Psr\Log\AbstractLogger;
/**
* A buffering logger that stacks logs for later.
*
* @author Nicolas Grekas <p@tchwork.com>
*
* @deprecated since Symfony 4.4 and will be removed in 5.0.
*/
class BufferingLogger extends AbstractLogger
{
@@ -4,14 +4,7 @@ CHANGELOG
4.4.0
-----

* deprecated the `BufferingLogger`, `ErrorHandler` and `ExceptionHandler` classes,
they have been moved to the `ErrorCatcher` component
* deprecated the `FatalErrorHandlerInterface`, `ClassNotFoundFatalErrorHandler`,
`UndefinedFunctionFatalErrorHandler` and `UndefinedMethodFatalErrorHandler` classes,
they have been moved to the `ErrorCatcher` component
* deprecated the `ClassNotFoundException`, `FatalErrorException`, `FatalThrowableError`,
`FlattenException`, `OutOfMemoryException`, `SilencedErrorContext`, `UndefinedFunctionException`,
and `UndefinedMethodException`, they have been moved to the `ErrorCatcher` component
* deprecated `FlattenException`, use the `FlattenException` of the `ErrorCatcher` component

4.3.0
-----
@@ -11,10 +11,6 @@
namespace Symfony\Component\Debug;
use Symfony\Component\ErrorCatcher\BufferingLogger;
use Symfony\Component\ErrorCatcher\ErrorHandler;
use Symfony\Component\ErrorCatcher\ExceptionHandler;
/**
* Registers all the debug tools.
*
@@ -86,7 +86,7 @@ public function getClassLoader()
public static function enable()
{
// Ensures we don't hit https://bugs.php.net/42098
class_exists('Symfony\Component\ErrorCatcher\ErrorHandler');
class_exists('Symfony\Component\Debug\ErrorHandler');
class_exists('Psr\Log\LogLevel');
if (!\is_array($functions = spl_autoload_functions())) {

0 comments on commit 0c641fc

Please sign in to comment.
You can’t perform that action at this time.