bug #32873 [ErrorRenderer] Add alias to FlattenException to avoid BC break (yceruto)
This PR was merged into the 4.4 branch.
Discussion
----------
[ErrorRenderer] Add alias to FlattenException to avoid BC break
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | https://github.com/symfony/symfony/issues/32473
| License | MIT
| Doc PR | -
Commits
-------
44b0e7d58c
Created alias to FlattenException to avoid BC break
This commit is contained in:
commit
748dd8eff3
@ -374,3 +374,18 @@ class FlattenException
|
|||||||
return rtrim($message);
|
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
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user