return $this->failureTransports->
get($name);
} private function createCloner(): ?ClonerInterface
{ if (!
class_exists(VarCloner::
class)) { return null;
} $cloner =
new VarCloner();
$cloner->
addCasters([FlattenException::
class => function DFlattenException
$flattenException, array
$a, Stub
$stub): array
{ $stub->class =
$flattenException->
getClass();
return [ Caster::PREFIX_VIRTUAL.'message' =>
$flattenException->
getMessage(),
Caster::PREFIX_VIRTUAL.'code' =>
$flattenException->
getCode(),
Caster::PREFIX_VIRTUAL.'file' =>
$flattenException->
getFile(),
Caster::PREFIX_VIRTUAL.'line' =>
$flattenException->
getLine(),
Caster::PREFIX_VIRTUAL.'trace' =>
new TraceStub($flattenException->
getTrace()),
];
}]);