Neos\ContentRepository\Domain\Service\ContextFactoryInterface::reset PHP Method

reset() public method

Clears the instances cache clearing all contexts.
public reset ( ) : void
return void
    public function reset();

Usage Example

 /**
  * Flush the node changes and reset the persistence manager and node data registry
  *
  * @return void
  */
 public function flushNodeChanges()
 {
     $nodeDataRepository = $this->objectManager->get(NodeDataRepository::class);
     $nodeDataRepository->flushNodeRegistry();
     $this->persistenceManager->persistAll();
     $this->persistenceManager->clearState();
     $this->contextFactory->reset();
 }
All Usage Examples Of Neos\ContentRepository\Domain\Service\ContextFactoryInterface::reset
ContextFactoryInterface