Neos\Flow\Session\Aspect\LazyLoadingAspect::initializeSession PHP Метод

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

Those methods will trigger a session initialization if a session does not exist yet.
public initializeSession ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : void
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point
Результат void
    public function initializeSession(JoinPointInterface $joinPoint)
    {
        if ($this->session->isStarted() === true) {
            return;
        }
        $objectName = $this->objectManager->getObjectNameByClassName(get_class($joinPoint->getProxy()));
        $methodName = $joinPoint->getMethodName();
        $this->systemLogger->log(sprintf('Session initialization triggered by %s->%s.', $objectName, $methodName), LOG_DEBUG);
        $this->session->start();
    }