Neos\Flow\ObjectManagement\ObjectManagerInterface::getContext PHP Méthode

getContext() public méthode

Returns the currently set context.
public getContext ( ) : ApplicationContext
Résultat Neos\Flow\Core\ApplicationContext the current context
    public function getContext();

Usage Example

 /**
  * @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);
     }
 }
All Usage Examples Of Neos\Flow\ObjectManagement\ObjectManagerInterface::getContext