Skip to content

Extension points

tilttek/reading-quests-bundle

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.

ToDo
Record where a reader isInject Tilttek\ReadingQuestsBundle\Application\ReadingTracker.
Keep and read yearly goalsInject Tilttek\ReadingQuestsBundle\Application\ReaderGoals.
Edit the books in the databaseInject Tilttek\ReadingQuestsBundle\Infrastructure\Doctrine\DbalBookShelf, with shelf.source: doctrine.
Find the books in the application's catalogueImplement Tilttek\ReadingQuests\BookShelfInterface, and name it in shelf.service.
Act on a reading started or finishedListen to ReadingStarted and ReadingCompleted (Events).
Build quests of readingUse Tilttek\ReadingQuests\ReadingSteps with tilttek/quests-bundle.
Keep the readings or the goals elsewhereAlias ReadingRepository or GoalRepository to your own repository.
Say who may record a positionCheck it in the application before calling ReadingTracker.

Services and aliases

IdServicePublic
Tilttek\ReadingQuestsBundle\Application\ReadingTrackerRecords a position.yes
Tilttek\ReadingQuestsBundle\Application\ReaderGoalsThe readers' yearly goals.yes
Tilttek\ReadingQuests\ReadingRecorderOn the activity journal and the shelf.yes
Tilttek\ReadingQuests\ReadingGoalsOn the activity journal, the clock and the timezone.yes
Tilttek\ReadingQuests\BookShelfInterfaceAlias of InMemoryBookShelf, DbalBookShelf or the application's shelf.yes
Tilttek\ReadingQuestsBundle\Domain\Repository\ReadingRepositoryAlias of DbalReadingRepository, or of InMemoryReadingRepository with store: memory.yes
Tilttek\ReadingQuestsBundle\Domain\Repository\GoalRepositoryAlias of DbalGoalRepository, or of InMemoryGoalRepository with store: memory.yes
Tilttek\ReadingQuestsBundle\Infrastructure\Doctrine\DbalBookShelfThe books in the database, with shelf.source: doctrine.yes
Tilttek\ReadingQuestsBundle\Infrastructure\Doctrine\ReadingSchemaListenerTagged doctrine.event_listener on postGenerateSchema, with the ORM.no
Tilttek\ReadingQuestsBundle\Infrastructure\Privacy\ReadingPrivacyTagged phil_privacy.exporter and phil_privacy.eraser, with the privacy bundle.no

Who may record a position

ReadingTracker trusts the reader it is given. The application gives it the signed-in member, never an identifier the request carries, and checks that the member may read the document — a book they own, a setting of their campaign — before it calls the tracker.