public function __construct($classNameOrObject)
{
$throwExceptionOnUnloadedClasses = function ($className) {
throw new Exception\ClassLoadingForReflectionFailedException(sprintf('Required class "%s" could not be loaded properly for reflection.%2$s%2$sPossible reasons are:%2$s%2$s * Requiring non-existent classes%2$s * Using non-supported annotations%2$s * Class-/filename missmatch.%2$s%2$sThe "Neos.Flow.object.excludeClasses" setting can be used to skip classes from being reflected.', $className, chr(10)));
};
spl_autoload_register($throwExceptionOnUnloadedClasses);
try {
parent::__construct($classNameOrObject);
} catch (Exception\ClassLoadingForReflectionFailedException $exception) {
spl_autoload_unregister($throwExceptionOnUnloadedClasses);
throw $exception;
}
spl_autoload_unregister($throwExceptionOnUnloadedClasses);
}