class FlattenException in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/debug/Exception/FlattenException.php \Symfony\Component\HttpKernel\Exception\FlattenException
FlattenException wraps a PHP Exception to be able to serialize it.
Basically, this class removes all objects from the trace.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\HttpKernel\Exception\FlattenException
Expanded class hierarchy of FlattenException
Deprecated
Deprecated in 2.3, to be removed in 3.0. Use the same class from the Debug component instead.
1 file declares its use of FlattenException
- FlattenException.php in vendor/
symfony/ debug/ Exception/ FlattenException.php
File
- vendor/
symfony/ debug/ Exception/ FlattenException.php, line 25
Namespace
Symfony\Component\HttpKernel\ExceptionView source
class FlattenException {
private $handler;
public static function __callStatic($method, $args) {
if (!method_exists('Symfony\\Component\\Debug\\Exception\\FlattenException', $method)) {
throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', get_called_class(), $method));
}
return call_user_func_array(array(
'Symfony\\Component\\Debug\\Exception\\FlattenException',
$method,
), $args);
}
public function __call($method, $args) {
if (!isset($this->handler)) {
$this->handler = new DebugFlattenException();
}
if (!method_exists($this->handler, $method)) {
throw new \BadMethodCallException(sprintf('Call to undefined method %s::%s()', get_class($this), $method));
}
return call_user_func_array(array(
$this->handler,
$method,
), $args);
}
}