Skip to content

Commit bc7b3e1

Browse files
[2.3] Cleanup deprecations
1 parent 95a6c1c commit bc7b3e1

12 files changed

+10
-26
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CHANGELOG
66

77
* [BC BREAK] renamed `Symfony\Component\HttpKernel\EventListener\DeprecationLoggerListener` to `Symfony\Component\HttpKernel\EventListener\ErrorsLoggerListener` and changed its constructor
88
* deprecated `Symfony\Component\HttpKernel\Debug\ErrorHandler`, `Symfony\Component\HttpKernel\Debug\ExceptionHandler`,
9-
`Symfony\Component\HttpKernel\Exception\FatalErrorException`, and `Symfony\Component\HttpKernel\Exception\FlattenException`
9+
`Symfony\Component\HttpKernel\Exception\FatalErrorException` and `Symfony\Component\HttpKernel\Exception\FlattenException`
1010
* deprecated `Symfony\Component\HttpKernel\Kernel::init()``
1111
* added the possibility to specify an id an extra attributes to hinclude tags
1212
* added the collect of data if a controller is a Closure in the Request collector

DataCollector/ExceptionDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
namespace Symfony\Component\HttpKernel\DataCollector;
1313

14+
use Symfony\Component\Debug\Exception\FlattenException;
1415
use Symfony\Component\HttpFoundation\Request;
1516
use Symfony\Component\HttpFoundation\Response;
16-
use Symfony\Component\HttpKernel\Exception\FlattenException;
1717

1818
/**
1919
* ExceptionDataCollector.

DataCollector/LoggerDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\DataCollector;
1313

14+
use Symfony\Component\Debug\ErrorHandler;
1415
use Symfony\Component\HttpFoundation\Request;
15-
use Symfony\Component\HttpKernel\Debug\ErrorHandler;
1616
use Symfony\Component\HttpFoundation\Response;
1717
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
1818

EventListener/ErrorsLoggerListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Component\HttpKernel\Debug\ErrorHandler;
15+
use Symfony\Component\Debug\ErrorHandler;
1616
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
1717
use Symfony\Component\HttpKernel\KernelEvents;
1818

EventListener/ExceptionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
namespace Symfony\Component\HttpKernel\EventListener;
1313

1414
use Psr\Log\LoggerInterface;
15+
use Symfony\Component\Debug\Exception\FlattenException;
1516
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
1617
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent;
1718
use Symfony\Component\HttpKernel\KernelEvents;
1819
use Symfony\Component\HttpKernel\HttpKernelInterface;
19-
use Symfony\Component\HttpKernel\Exception\FlattenException;
2020
use Symfony\Component\HttpKernel\Exception\HttpExceptionInterface;
2121
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
2222

Exception/FatalErrorException.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,11 @@
1111

1212
namespace Symfony\Component\HttpKernel\Exception;
1313

14-
use Symfony\Component\Debug\Exception\FatalErrorException as DebugFatalErrorException;
15-
1614
/**
1715
* Fatal Error Exception.
1816
*
1917
* @author Konstanton Myakshin <koc-dp@yandex.ru>
2018
*
2119
* @deprecated Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
2220
*/
23-
class FatalErrorException extends DebugFatalErrorException
24-
{
25-
}
21+
class_exists('Symfony\Component\Debug\Exception\FatalErrorException');

Exception/FlattenException.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Component\HttpKernel\Exception;
1313

14-
use Symfony\Component\Debug\Exception\FlattenException as DebugFlattenException;
15-
1614
/**
1715
* FlattenException wraps a PHP Exception to be able to serialize it.
1816
*
@@ -22,6 +20,4 @@
2220
*
2321
* @deprecated Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
2422
*/
25-
class FlattenException extends DebugFlattenException
26-
{
27-
}
23+
class_exists('Symfony\Component\Debug\Exception\FlattenException');

Tests/DataCollector/ConfigDataCollectorTest.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,6 @@ public function registerBundles()
7676
{
7777
}
7878

79-
public function init()
80-
{
81-
}
82-
8379
public function getBundles()
8480
{
8581
return array();

Tests/DataCollector/ExceptionDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Tests\DataCollector;
1313

14+
use Symfony\Component\Debug\Exception\FlattenException;
1415
use Symfony\Component\HttpKernel\DataCollector\ExceptionDataCollector;
15-
use Symfony\Component\HttpKernel\Exception\FlattenException;
1616
use Symfony\Component\HttpFoundation\Request;
1717
use Symfony\Component\HttpFoundation\Response;
1818

Tests/DataCollector/LoggerDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
namespace Symfony\Component\HttpKernel\Tests\DataCollector;
1313

14+
use Symfony\Component\Debug\ErrorHandler;
1415
use Symfony\Component\HttpKernel\DataCollector\LoggerDataCollector;
15-
use Symfony\Component\HttpKernel\Debug\ErrorHandler;
1616
use Symfony\Component\HttpFoundation\Request;
1717
use Symfony\Component\HttpFoundation\Response;
1818

0 commit comments

Comments
 (0)