Skip to content

Extension points

tilttek/bingo

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\BingoStoreWhere the games and their cards are kept, at a versionStoring
CardDealer's secretThe server's secret that draws every card and every check codeCards and their seed
WinPattern::custom()Patterns of its ownRunning a game
TriggerThe gesture of the activity journal that ticks each squareRunning a game
Psr\EventDispatcher\EventDispatcherInterfaceWho hears of each tick, call and winCelebrations
Psr\Clock\ClockInterfaceThe time of each winInstallation
The variable labels and the block wonThe words of the card, and its celebrationCelebrations
The variable labels and the block footer of the printed batchThe words of the printed cardsPrinted cards
Symfony\Component\Mercure\HubInterface and a topic prefixWhere the moves of a game are pushedLive updates

Every point is passed to a constructor; none of the library's services keeps state between two calls.