Neos\Flow\Utility\Environment::getContext PHP Method

getContext() public method

public getContext ( ) : ApplicationContext
return Neos\Flow\Core\ApplicationContext
    public function getContext()
    {
        return $this->context;
    }

Usage Example

 /**
  * @Flow\Around("method(Neos\Neos\Domain\Repository\DomainRepository->findOneByActiveRequest())")
  * @param JoinPointInterface $joinPoint The current join point
  * @return 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;
 }
All Usage Examples Of Neos\Flow\Utility\Environment::getContext