From 3216caf4307a91872e0d4c35f1485c33e97e506c Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Mon, 22 Jul 2019 17:25:27 -0400 Subject: [PATCH] [ErrorHandler] Relax transition to the new Debug class --- .../ErrorHandler/Resources/stubs/Debug.php | 25 +++++++++++++++++++ .../Component/ErrorHandler/composer.json | 7 +++--- 2 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 src/Symfony/Component/ErrorHandler/Resources/stubs/Debug.php diff --git a/src/Symfony/Component/ErrorHandler/Resources/stubs/Debug.php b/src/Symfony/Component/ErrorHandler/Resources/stubs/Debug.php new file mode 100644 index 0000000000..2a3f8bed79 --- /dev/null +++ b/src/Symfony/Component/ErrorHandler/Resources/stubs/Debug.php @@ -0,0 +1,25 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\Debug; + +if (!class_exists(Debug::class, false)) { + class_alias(\Symfony\Component\ErrorHandler\Debug::class, Debug::class); +} + +if (false) { + /** + * @deprecated since Symfony 4.4, use Symfony\Component\ErrorHandler\Debug instead. + */ + class Debug extends \Symfony\Component\ErrorHandler\Debug + { + } +} diff --git a/src/Symfony/Component/ErrorHandler/composer.json b/src/Symfony/Component/ErrorHandler/composer.json index 3794930f35..87dec458c9 100644 --- a/src/Symfony/Component/ErrorHandler/composer.json +++ b/src/Symfony/Component/ErrorHandler/composer.json @@ -20,14 +20,15 @@ "psr/log": "~1.0", "symfony/error-renderer": "^4.4|^5.0" }, - "conflict": { - "symfony/http-kernel": "<3.4" - }, "require-dev": { "symfony/http-kernel": "^3.4|^4.0|^5.0" }, + "conflict": { + "symfony/http-kernel": "<3.4" + }, "autoload": { "psr-4": { "Symfony\\Component\\ErrorHandler\\": "" }, + "classmap": [ "Resources/stubs/Debug.php" ], "exclude-from-classmap": [ "/Tests/" ]