Skip to content

Extension points

tilttek/collections
PointWhat an application givesWhere
CatalogProvider, WritableCatalogWhere the catalog comes from: code, a configuration, or a database the site editsThe catalog
Store\CopyStore, Store\CompletionStore, Pack\OpeningStore, Daily\DailyStore, Dice\ChoiceStoreThe storage of copies, completed sets, opened packs, the calendar of the day and the dice chosenWriting a store
Daily\DateRuleA computed date of the calendar of the item of the day — a week from Easter, the fourth Thursday of NovemberThe item of the day
Pack\SeedSourceThe seed of a pack's draw: a secure generator in production, a fixed seed in testsPacks
CollectionObserverWhat is done when a copy is given or a set completed: a notification, a rewardCopies and the album
Psr\Clock\ClockInterfaceThe clock the services read: the system's in production, a fixed one in testsTesting

Every point is passed to the constructor of the service that uses it; the services keep no state of their own between two calls.