Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eda49e2

Browse files
ycerutonicolas-grekas
authored andcommitted
[Debug] Restoring back the state of the Debug component (1st step)
1 parent 350ec6c commit eda49e2

File tree

65 files changed

+2510
-1855
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2510
-1855
lines changed

src/Symfony/Bundle/FrameworkBundle/Console/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
use Symfony\Component\Console\Output\ConsoleOutputInterface;
2020
use Symfony\Component\Console\Output\OutputInterface;
2121
use Symfony\Component\Console\Style\SymfonyStyle;
22+
use Symfony\Component\Debug\Exception\FatalThrowableError;
2223
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
23-
use Symfony\Component\ErrorCatcher\Exception\FatalThrowableError;
2424
use Symfony\Component\HttpKernel\Bundle\Bundle;
2525
use Symfony\Component\HttpKernel\Kernel;
2626
use Symfony\Component\HttpKernel\KernelInterface;

src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
use Symfony\Component\Cache\DependencyInjection\CachePoolPrunerPass;
3030
use Symfony\Component\Config\Resource\ClassExistenceResource;
3131
use Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass;
32+
use Symfony\Component\Debug\ErrorHandler;
3233
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
3334
use Symfony\Component\DependencyInjection\Compiler\RegisterReverseContainerPass;
3435
use Symfony\Component\DependencyInjection\ContainerBuilder;
3536
use Symfony\Component\ErrorCatcher\DependencyInjection\ErrorCatcherPass;
36-
use Symfony\Component\ErrorCatcher\ErrorHandler;
3737
use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
3838
use Symfony\Component\Form\DependencyInjection\FormPass;
3939
use Symfony\Component\HttpFoundation\Request;

src/Symfony/Component/Console/Application.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
use Symfony\Component\Console\Output\ConsoleOutputInterface;
4242
use Symfony\Component\Console\Output\OutputInterface;
4343
use Symfony\Component\Console\Style\SymfonyStyle;
44-
use Symfony\Component\ErrorCatcher\ErrorHandler;
45-
use Symfony\Component\ErrorCatcher\Exception\FatalThrowableError;
44+
use Symfony\Component\Debug\ErrorHandler;
45+
use Symfony\Component\Debug\Exception\FatalThrowableError;
4646
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
4747
use Symfony\Component\EventDispatcher\LegacyEventDispatcherProxy;
4848
use Symfony\Contracts\Service\ResetInterface;

src/Symfony/Component/Debug/BufferingLogger.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,12 @@
1111

1212
namespace Symfony\Component\Debug;
1313

14-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4 and will be removed in 5.0.', BufferingLogger::class), E_USER_DEPRECATED);
15-
1614
use Psr\Log\AbstractLogger;
1715

1816
/**
1917
* A buffering logger that stacks logs for later.
2018
*
2119
* @author Nicolas Grekas <[email protected]>
22-
*
23-
* @deprecated since Symfony 4.4 and will be removed in 5.0.
2420
*/
2521
class BufferingLogger extends AbstractLogger
2622
{

src/Symfony/Component/Debug/CHANGELOG.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,7 @@ CHANGELOG
44
4.4.0
55
-----
66

7-
* deprecated the `BufferingLogger`, `ErrorHandler` and `ExceptionHandler` classes,
8-
they have been moved to the `ErrorCatcher` component
9-
* deprecated the `FatalErrorHandlerInterface`, `ClassNotFoundFatalErrorHandler`,
10-
`UndefinedFunctionFatalErrorHandler` and `UndefinedMethodFatalErrorHandler` classes,
11-
they have been moved to the `ErrorCatcher` component
12-
* deprecated the `ClassNotFoundException`, `FatalErrorException`, `FatalThrowableError`,
13-
`FlattenException`, `OutOfMemoryException`, `SilencedErrorContext`, `UndefinedFunctionException`,
14-
and `UndefinedMethodException`, they have been moved to the `ErrorCatcher` component
7+
* deprecated `FlattenException`, use the `FlattenException` of the `ErrorCatcher` component
158

169
4.3.0
1710
-----

src/Symfony/Component/Debug/Debug.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@
1111

1212
namespace Symfony\Component\Debug;
1313

14-
use Symfony\Component\ErrorCatcher\BufferingLogger;
15-
use Symfony\Component\ErrorCatcher\ErrorHandler;
16-
use Symfony\Component\ErrorCatcher\ExceptionHandler;
17-
1814
/**
1915
* Registers all the debug tools.
2016
*

src/Symfony/Component/Debug/DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function getClassLoader()
8686
public static function enable()
8787
{
8888
// Ensures we don't hit https://bugs.php.net/42098
89-
class_exists('Symfony\Component\ErrorCatcher\ErrorHandler');
89+
class_exists('Symfony\Component\Debug\ErrorHandler');
9090
class_exists('Psr\Log\LogLevel');
9191

9292
if (!\is_array($functions = spl_autoload_functions())) {

0 commit comments

Comments
 (0)