Extension points
tilttek/reading-quests-bundleThe 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.
| To | Do |
|---|---|
| Record where a reader is | Inject Tilttek\ReadingQuestsBundle\Application\ReadingTracker. |
| Keep and read yearly goals | Inject Tilttek\ReadingQuestsBundle\Application\ReaderGoals. |
| Edit the books in the database | Inject Tilttek\ReadingQuestsBundle\Infrastructure\Doctrine\DbalBookShelf, with shelf.source: doctrine. |
| Find the books in the application's catalogue | Implement Tilttek\ReadingQuests\BookShelfInterface, and name it in shelf.service. |
| Act on a reading started or finished | Listen to ReadingStarted and ReadingCompleted (Events). |
| Build quests of reading | Use Tilttek\ReadingQuests\ReadingSteps with tilttek/quests-bundle. |
| Keep the readings or the goals elsewhere | Alias ReadingRepository or GoalRepository to your own repository. |
| Say who may record a position | Check it in the application before calling ReadingTracker. |
Services and aliases
| Id | Service | Public |
|---|---|---|
Tilttek\ReadingQuestsBundle\Application\ReadingTracker | Records a position. | yes |
Tilttek\ReadingQuestsBundle\Application\ReaderGoals | The readers' yearly goals. | yes |
Tilttek\ReadingQuests\ReadingRecorder | On the activity journal and the shelf. | yes |
Tilttek\ReadingQuests\ReadingGoals | On the activity journal, the clock and the timezone. | yes |
Tilttek\ReadingQuests\BookShelfInterface | Alias of InMemoryBookShelf, DbalBookShelf or the application's shelf. | yes |
Tilttek\ReadingQuestsBundle\Domain\Repository\ReadingRepository | Alias of DbalReadingRepository, or of InMemoryReadingRepository with store: memory. | yes |
Tilttek\ReadingQuestsBundle\Domain\Repository\GoalRepository | Alias of DbalGoalRepository, or of InMemoryGoalRepository with store: memory. | yes |
Tilttek\ReadingQuestsBundle\Infrastructure\Doctrine\DbalBookShelf | The books in the database, with shelf.source: doctrine. | yes |
Tilttek\ReadingQuestsBundle\Infrastructure\Doctrine\ReadingSchemaListener | Tagged doctrine.event_listener on postGenerateSchema, with the ORM. | no |
Tilttek\ReadingQuestsBundle\Infrastructure\Privacy\ReadingPrivacy | Tagged 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.