Skip to content

Extension points

tilttek/quiz

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\QuestionA kind of question of its own, graded on the answer aloneQuestions and scoring
Contract\AnswerThe answer its own kind of question takesQuestions and scoring
Contract\QuestionSourceA bank of questions: an assessment library, a file, an editorQuestions and scoring
Contract\QuizCatalogWhere the quizzes are readStoring
Contract\PlayStore, Contract\LiveSessionStoreWhere the plays and the sessions are kept, at a versionStoring
Contract\PseudonymFilterThe pseudonyms a guest may not take: the library's word list, its own list, a moderation servicePlaying
Psr\EventDispatcher\EventDispatcherInterfaceWho hears of the end of each runCelebrations
Psr\Clock\ClockInterfaceThe time every timer readsQuestions and scoring
Random\RandomizerThe source of the PINsInstallation
Symfony\Component\Mercure\HubInterface and a topic prefixWhere the moves of a live session are pushedLive updates
The blocks summary and celebrationThe words of the result, and its celebrationCelebrations
Team identifiers and Team\TeamScoringThe teams of a session, and how their players' scores add upPlaying

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