Skip to content

Extension points

tilttek/generator

The Generator takes its collaborators in its constructor; each has a default and can be replaced.

Port or collaboratorDefaultUse
Tilttek\Generator\Grammar\GrammarFrench, English, Spanish, German, Italian, PortugueseThe rules of a language behind the grammar filters: implement it to add a language, and give it in a Grammars by language or locale. See Grammar.
Tilttek\Generator\Grammar\Grammarsthe built-in grammarsThe grammars by locale or language: the application's are added to the built-in ones, and replace one under the same key.
Tilttek\Generator\TimerSystemTimerThe monotonic clock of the time limit: a stepping clock in tests.
Random\Randomizera secure engineThe randomness of a draw without a seed: a scripted or seeded engine in tests.
Tilttek\Dice\DiceRollera DiceRoller with the default limitsRolls the roll() of the templates, with the application's custom dice and notations.
Tilttek\Generator\Loading\Reader, FileLoader—Turn documents and files into a Catalog; an application that keeps its lists elsewhere builds the Catalog itself.