protected function evaluateLifeCycleAnnotations(\ReflectionClass $class, ORM\ClassMetadataInfo $metadata)
{
foreach ($class->getMethods() as $method) {
if ($method->isPublic()) {
foreach ($this->getMethodCallbacks($method) as $value) {
$metadata->addLifecycleCallback($value[0], $value[1]);
}
}
}
$proxyAnnotation = $this->reader->getClassAnnotation($class, Flow\Proxy::class);
if ($proxyAnnotation === null || $proxyAnnotation->enabled !== false) {
$metadata->addLifecycleCallback('__wakeup', Events::postLoad);
}
}