Skip to content

Extension points

tilttek/stickers

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.

PointWhat an application givesWhere
Contract\StickerCatalogThe stickers of the site; Store\InMemoryStickerCatalog takes them wholeThe catalogue
Contract\OwnershipStoreThe stickers each holder owns; Store\InMemoryOwnershipStore keeps them in memoryThe catalogue
Contract\PlacementStoreThe placements; Store\InMemoryPlacementStore keeps them in memoryPlacing stickers
Contract\SurfacePolicyWhich surfaces each holder may use; Policy\InMemorySurfacePolicy assigns themPlacing stickers
Contract\PlacementModeratorThe moderation of new placementsShowing and moderating
LimitsThe limits of the sitePlacing stickers
Psr\EventDispatcher\EventDispatcherInterfaceWho hears of each changeShowing and moderating
Psr\Clock\ClockInterfaceThe time of the placements, kept in UTCInstallation
Tilttek\Sets\SetsThe sets the sticker sheets areSheets and albums

Every point is passed to a constructor; Stickers and StickerSheets keep no state between two calls.