You are here

private function Instantiator::attemptInstantiationViaUnSerialization in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php \Doctrine\Instantiator\Instantiator::attemptInstantiationViaUnSerialization()

Parameters

ReflectionClass $reflectionClass:

string $serializedString:

Return value

void

Throws

UnexpectedValueException

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\Instantiator

Code

private function attemptInstantiationViaUnSerialization(ReflectionClass $reflectionClass, $serializedString) {
  try {
    unserialize($serializedString);
  } catch (Exception $exception) {
    restore_error_handler();
    throw UnexpectedValueException::fromSerializationTriggeredException($reflectionClass, $exception);
  }
}