private function Instantiator::attemptInstantiationViaUnSerialization in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php \Doctrine\Instantiator\Instantiator::attemptInstantiationViaUnSerialization()
Parameters
ReflectionClass $reflectionClass:
string $serializedString:
Return value
void
Throws
1 call to Instantiator::attemptInstantiationViaUnSerialization()
- Instantiator::checkIfUnSerializationIsSupported in vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ Instantiator.php
File
- vendor/
doctrine/ instantiator/ src/ Doctrine/ Instantiator/ Instantiator.php, line 181
Class
- Instantiator
- @author Marco Pivetta <ocramius@gmail.com>
Namespace
Doctrine\InstantiatorCode
private function attemptInstantiationViaUnSerialization(ReflectionClass $reflectionClass, $serializedString) {
try {
unserialize($serializedString);
} catch (Exception $exception) {
restore_error_handler();
throw UnexpectedValueException::fromSerializationTriggeredException($reflectionClass, $exception);
}
}