private function Instantiator::checkIfUnSerializationIsSupported in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php \Doctrine\Instantiator\Instantiator::checkIfUnSerializationIsSupported()
Parameters
ReflectionClass $reflectionClass:
string $serializedString:
Return value
void
Throws
1 call to Instantiator::checkIfUnSerializationIsSupported()
- Instantiator::buildFactory in vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ Instantiator.php - Builds a {invoking its constructor.
File
- vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ Instantiator.php, line 152
Class
- Instantiator
- @author Marco Pivetta <ocramius@gmail.com>
Namespace
Doctrine\InstantiatorCode
private function checkIfUnSerializationIsSupported(ReflectionClass $reflectionClass, $serializedString) {
set_error_handler(function ($code, $message, $file, $line) use ($reflectionClass, &$error) {
$error = UnexpectedValueException::fromUncleanUnSerialization($reflectionClass, $message, $code, $file, $line);
});
$this
->attemptInstantiationViaUnSerialization($reflectionClass, $serializedString);
restore_error_handler();
if ($error) {
throw $error;
}
}