Skip to content

Reference

tilttek/reading-quests-bundle
ClassRole
TilttekReadingQuestsBundleThe bundle: its configuration tilttek_reading_quests, and the privacy module when phil/privacy-bundle is installed.
Application\ReadingTrackerRecords a position: activities, reading stored at its version, events; the current reading, reading again.
Application\ReaderGoalsSets, replaces, removes and reads a reader's yearly goal.
Application\ReadersChecks a reader as the repositories key it; internal.
Domain\ValueObject\StoredReadingA reading as it is stored: its number, its progress, its version.
Domain\Repository\ReadingRepositoryThe contract of the readings: the latest reading of a book, a reading saved at its version.
Domain\Repository\GoalRepositoryThe contract of the goals: one per reader and year.
Domain\Exception\ReadingConflictA reading stored by another request first; under ReadingQuestsExceptionInterface.
Infrastructure\DependencyInjection\ReadingQuestsServicesRegisters the services from the configuration, checked when the container is compiled.
Infrastructure\Doctrine\DbalReadingRepositoryThe readings on a DBAL connection; readingsOf() and eraseReader().
Infrastructure\Doctrine\DbalGoalRepositoryThe goals on a DBAL connection; goalsOf() and eraseMember().
Infrastructure\Doctrine\DbalBookShelfThe books on a DBAL connection; save() and remove().
Infrastructure\Doctrine\ReadingTablesThe tables, for the platform of the connection.
Infrastructure\Doctrine\ReadingSchemaListenerAdds the tables to the schema the ORM generates for their connection.
Infrastructure\Doctrine\RowsReads the values of a row as the drivers give them; internal.
Infrastructure\Memory\InMemoryReadingRepositoryThe readings in memory, for tests; reset().
Infrastructure\Memory\InMemoryGoalRepositoryThe goals in memory, for tests; reset().
Infrastructure\Privacy\ReadingPrivacyExports and erases a reader's readings and goals for phil/privacy-bundle.

Every class is under Tilttek\ReadingQuestsBundle. The services the bundle defines from tilttek/reading-quests — ReadingRecorder, ReadingGoals, ReadingActivities, ReadingMeasure, InMemoryBookShelf — are documented by that library.