Created alias to FlattenException to avoid BC break

This commit is contained in:
Yonel Ceruto 2019-08-01 15:26:08 -04:00
parent bb74384236
commit 44b0e7d58c

View File

@ -374,3 +374,18 @@ class FlattenException
return rtrim($message);
}
}
namespace Symfony\Component\Debug\Exception;
if (!class_exists(FlattenException::class, false)) {
class_alias(\Symfony\Component\ErrorRenderer\Exception\FlattenException::class, FlattenException::class);
}
if (false) {
/**
* @deprecated since Symfony 4.4, use Symfony\Component\ErrorRenderer\Exception\FlattenException instead.
*/
class FlattenException extends \Symfony\Component\ErrorRenderer\Exception\FlattenException
{
}
}