Neos\Flow\Persistence\Doctrine\Mapping\Driver\FlowAnnotationDriver::evaluateLifeCycleAnnotations PHP Метод

evaluateLifeCycleAnnotations() защищенный Метод

Evaluate the lifecycle annotations and amend the metadata accordingly.
protected evaluateLifeCycleAnnotations ( ReflectionClass $class, Doctrine\ORM\Mapping\ClassMetadataInfo $metadata ) : void
$class ReflectionClass
$metadata Doctrine\ORM\Mapping\ClassMetadataInfo
Результат void
    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);
        }
    }