Note that this is called during the request therefore the task of this interfaces method should normally be to record references to the structures which should later be invalidated in the flush interface.
Inheritance: extends HandlerInterface
コード例 #1
0
 /**
  * @param ContentNodeDeleteEvent
  */
 public function onContentNodePostDelete(ContentNodeDeleteEvent $event)
 {
     foreach ($this->structureInvalidationStack as $structure) {
         $this->handler->invalidateStructure($structure);
     }
 }
コード例 #2
0
ファイル: InvalidationSubscriber.php プロジェクト: sulu/sulu
 /**
  * Invalidates the structure of the given document.
  *
  * @param $document
  */
 private function invalidateDocumentStructure($document)
 {
     $structureBridge = $this->structureManager->wrapStructure($this->documentInspector->getMetadata($document)->getAlias(), $this->documentInspector->getStructureMetadata($document));
     $structureBridge->setDocument($document);
     $this->structureHandler->invalidateStructure($structureBridge);
 }