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

Returns the currently set context.
public getContext ( ) : ApplicationContext
Результат Neos\Flow\Core\ApplicationContext the current context
 /**
  * @return void
  */
 public function initializeObject()
 {
     // flush routing caches if in Development context & routing settings changed
     if ($this->objectManager->getContext()->isDevelopment() && $this->routeCache->get('routingSettings') !== $this->routingSettings) {
         $this->flushCaches();
         $this->routeCache->set('routingSettings', $this->routingSettings);
     }
 }
 /**
  * Call the render() method and handle errors.
  *
  * @return string the rendered ViewHelper
  * @throws Exception
  */
 protected function callRenderMethod()
 {
     $renderMethodParameters = [];
     foreach ($this->argumentDefinitions as $argumentName => $argumentDefinition) {
         if ($argumentDefinition instanceof ArgumentDefinition && $argumentDefinition->isMethodParameter()) {
             $renderMethodParameters[$argumentName] = $this->arguments[$argumentName];
         }
     }
     try {
         return call_user_func_array([$this, 'render'], $renderMethodParameters);
     } catch (Exception $exception) {
         if ($this->objectManager->getContext()->isProduction()) {
             $this->systemLogger->log('A Fluid ViewHelper Exception was captured: ' . $exception->getMessage() . ' (' . $exception->getCode() . ')', LOG_ERR, ['exception' => $exception]);
             return '';
         } else {
             throw $exception;
         }
     }
 }