Method | Description | |
---|---|---|
__construct ( Sulu\Component\HttpCache\HandlerInvalidatePathInterface $pathHandler, Sulu\Component\HttpCache\HandlerInvalidateStructureInterface $structureHandler, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, |
||
getSubscribedEvents ( ) | ||
invalidateDocumentBeforePublishing ( Sulu\Component\DocumentManager\Event\PublishEvent $event ) | Invalidates the assigned structure and all urls in the locale of the document of an already published document when it gets republished (eg on content change). | |
invalidateDocumentBeforeRemoving ( Sulu\Component\DocumentManager\Event\RemoveEvent $event ) | Invalidates the assigned structure and all urls in all locales of the document when a document gets removed. | |
invalidateDocumentBeforeUnpublishing ( Sulu\Component\DocumentManager\Event\UnpublishEvent $event ) | Invalidates the assigned structure and all urls in the locale of the document when a document gets unpublished. |
Method | Description | |
---|---|---|
getLocaleUrls ( Sulu\Component\Content\Document\Behavior\ResourceSegmentBehavior $document, string $locale ) : array | Returns all urls of the given locale which are associated with the given document. | |
invalidateDocumentStructure ( $document ) | Invalidates the structure of the given document. | |
invalidateDocumentUrls ( $document, $locale ) | Invalidates all urls which are assigned to the given document in the given locale. |
public __construct ( Sulu\Component\HttpCache\HandlerInvalidatePathInterface $pathHandler, Sulu\Component\HttpCache\HandlerInvalidateStructureInterface $structureHandler, Sulu\Component\Content\Compat\StructureManagerInterface $structureManager, |
||
$pathHandler | Sulu\Component\HttpCache\HandlerInvalidatePathInterface | |
$structureHandler | Sulu\Component\HttpCache\HandlerInvalidateStructureInterface | |
$structureManager | Sulu\Component\Content\Compat\StructureManagerInterface | |
$documentInspector | ||
$resourceLocatorStrategyPool | Sulu\Component\Content\Types\ResourceLocator\Strategy\ResourceLocatorStrategyPoolInterface | |
$webspaceManager | Sulu\Component\Webspace\Manager\WebspaceManagerInterface | |
$environment | string | - kernel envionment, dev, prod, etc |
public invalidateDocumentBeforePublishing ( Sulu\Component\DocumentManager\Event\PublishEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\PublishEvent |
public invalidateDocumentBeforeRemoving ( Sulu\Component\DocumentManager\Event\RemoveEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\RemoveEvent |
public invalidateDocumentBeforeUnpublishing ( Sulu\Component\DocumentManager\Event\UnpublishEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\UnpublishEvent |