Skip to content

Commit 1a8814c

Browse files
author
David Fuhr
committed
[Hackday] [2.7] Add a deprecation note about Debug component classes
Resolves #12623
1 parent 076c215 commit 1a8814c

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

Debug/ErrorHandler.php

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

1212
namespace Symfony\Component\HttpKernel\Debug;
1313

14+
trigger_error('Symfony\Component\HttpKernel\Debug\ErrorHandler is deprecated since version 2.3 and will be removed in 3.0. Use the same class from the Debug component instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Debug\ErrorHandler as DebugErrorHandler;
1517

1618
/**

Debug/ExceptionHandler.php

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

1212
namespace Symfony\Component\HttpKernel\Debug;
1313

14+
trigger_error('Symfony\Component\HttpKernel\Debug\ExceptionHandler is deprecated since version 2.3 and will be removed in 3.0. Use the same class from the Debug component instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Debug\ExceptionHandler as DebugExceptionHandler;
1517

1618
/**

Exception/FatalErrorException.php

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

1212
namespace Symfony\Component\HttpKernel\Exception;
1313

14+
trigger_error('Symfony\Component\HttpKernel\Exception\FatalErrorException is deprecated since version 2.3 and will be removed in 3.0. Use the same class from the Debug component instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Debug\Exception\FatalErrorException as DebugFatalErrorException;
1517

1618
/**

Exception/FlattenException.php

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

1212
namespace Symfony\Component\HttpKernel\Exception;
1313

14+
trigger_error('Symfony\Component\HttpKernel\Exception\FlattenException is deprecated since version 2.3 and will be removed in 3.0. Use the same class from the Debug component instead.', E_USER_DEPRECATED);
15+
1416
use Symfony\Component\Debug\Exception\FlattenException as DebugFlattenException;
1517

1618
/**

0 commit comments

Comments
 (0)