Skip to content

Extension points

tilttek/activity
PointWhat an application givesWhere
Log\ActivityLogThe storage of the journal, in place of InMemoryActivityLogWriting a journal
Projection\ProjectionA derived state of its own, kept up to date from the journal and rebuilt when a rule changesProjections
Projection\CheckpointsWhere each projection stopped, in place of InMemoryCheckpointsProjections
JournalObserverWhat is done right after an entry is written, in the same processRecording activity
Psr\Clock\ClockInterfaceThe clock that stamps each entry: 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.