Neos\Flow\Persistence\Generic\Aspect\LazyLoadingObjectAspect::initialize PHP Метод

initialize() публичный Метод

This expects $proxy->Flow_Persistence_LazyLoadingObject_thawProperties to be a Closure that populates the object. That variable is unset after initializing the object!
public initialize ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point
Результат void
    public function initialize(JoinPointInterface $joinPoint)
    {
        $proxy = $joinPoint->getProxy();
        if (property_exists($proxy, 'Flow_Persistence_LazyLoadingObject_thawProperties') && $proxy->Flow_Persistence_LazyLoadingObject_thawProperties instanceof \Closure) {
            $proxy->Flow_Persistence_LazyLoadingObject_thawProperties->__invoke($proxy);
            unset($proxy->Flow_Persistence_LazyLoadingObject_thawProperties);
        }
    }