bootstrap->getActiveRequestHandler(); if (! $handler instanceof HttpRequestHandlerInterface) { $this->logger->debug(\get_class($handler)); return $joinPoint->getAdviceChain()->proceed($joinPoint); } $componentContext = $handler->getComponentContext(); /** @var Lock $lock */ $lock = $componentContext->getParameter(SessionLockRequestComponent::class, 'sessionLock'); $this->readOnly = true; if ($lock) { $this->logger->debug('SessionLock: Release, as this is marked read only'); $lock->release(); } return $joinPoint->getAdviceChain()->proceed($joinPoint); } /** * @Flow\Around("method(Neos\Flow\Session\Session->shutdownObject())") * * @param JoinPointInterface $joinPoint */ public function doNotSaveSession(JoinPointInterface $joinPoint) { if ($this->readOnly) { return; } $joinPoint->getAdviceChain()->proceed($joinPoint); } }