Extension points
tilttek/quizThe 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.
| Point | What an application gives | Where |
|---|---|---|
Contract\Question | A kind of question of its own, graded on the answer alone | Questions and scoring |
Contract\Answer | The answer its own kind of question takes | Questions and scoring |
Contract\QuestionSource | A bank of questions: an assessment library, a file, an editor | Questions and scoring |
Contract\QuizCatalog | Where the quizzes are read | Storing |
Contract\PlayStore, Contract\LiveSessionStore | Where the plays and the sessions are kept, at a version | Storing |
Contract\PseudonymFilter | The pseudonyms a guest may not take: the library's word list, its own list, a moderation service | Playing |
Psr\EventDispatcher\EventDispatcherInterface | Who hears of the end of each run | Celebrations |
Psr\Clock\ClockInterface | The time every timer reads | Questions and scoring |
Random\Randomizer | The source of the PINs | Installation |
Symfony\Component\Mercure\HubInterface and a topic prefix | Where the moves of a live session are pushed | Live updates |
The blocks summary and celebration | The words of the result, and its celebration | Celebrations |
Team identifiers and Team\TeamScoring | The teams of a session, and how their players' scores add up | Playing |
Every point is passed to a constructor; none of the library's services keeps state between two calls.