[ErrorHandler] Relax transition to the new Debug class

This commit is contained in:
Yonel Ceruto 2019-07-22 17:25:27 -04:00 committed by Nicolas Grekas
parent a7852c0da8
commit 3216caf430
2 changed files with 29 additions and 3 deletions

View File

@ -0,0 +1,25 @@
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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
{
}
}

View File

@ -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/"
]