Neos\Neos\Aspects\SiteRepositoryCachingAspect::cacheDomainForActiveRequest PHP Méthode

cacheDomainForActiveRequest() public méthode

public cacheDomainForActiveRequest ( Neos\Flow\Aop\JoinPointInterface $joinPoint ) : mixed
$joinPoint Neos\Flow\Aop\JoinPointInterface The current join point
Résultat mixed
    public function cacheDomainForActiveRequest(JoinPointInterface $joinPoint)
    {
        if ($this->domainForActiveRequest === false || $this->environment->getContext()->isTesting()) {
            $domain = $joinPoint->getAdviceChain()->proceed($joinPoint);
            $this->domainForActiveRequest = $domain;
        }
        return $this->domainForActiveRequest;
    }