Skip to content

Extension points

tilttek/quests
PointWhat an application givesWhere
Catalog, WritableCatalogThe quests, from a configuration or a catalog the site editsInstallation
Store\ContributionStore, Store\CompletionStore, Store\EnrolmentStore, Store\DuelStoreThe storage of contributions, completions, enrolments and duels, in place of the stores in memoryWriting a store
Schedule\Schedule, Schedule\ScheduleReaderWhen a quest is open beyond the built-in schedules, read from the keys of its definitionSchedules and chains
QuestObserverWhat is done when a quest is accomplished, a duel won or a duel expiredThe projection
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.