Skip to content

Extension points

phil/publishing

The package is at 0.x: its extension points are stable only from its 1.0 release. Until then, a minor version may change them, and its CHANGELOG says how.

The library declares no service and takes no port. What an application relies on:

ToRely on
Announce a page that goes online or offlinenew PagePublished(...) and new PageRetired(...), dispatched on the application's dispatcher by the package that owns the page
Follow both alikeContract\PageEvent: canonicalUrl, locale, indexable and ownerId, read-only
Follow oneA listener of PagePublished or of PageRetired, by class
Refuse a malformed eventException\InvalidPageEvent, thrown by both constructors

PageEventFields holds the checks both events share; it is internal and may change in any version.