Extension points
tilttek/journal-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 |
|---|---|
| Write and read the journals | Inject Tilttek\Journal\Journal. |
| Export entries in Markdown | Inject Tilttek\Journal\Export\MarkdownExport, its links set by markdown.page_link. |
| Keep the secrets of the campaigns | Name the store in knowledge_store, or define Tilttek\PlayerKnowledge\Knowledge. |
| Link names to pages | Implement Tilttek\Journal\Contract\PageDirectoryInterface, and name it in pages_service. |
| Draft summaries from the session | Implement Tilttek\Journal\Contract\SessionEventSourceInterface, and name it in session_events_service. |
| Act on what happened | Listen to the events of tilttek/journal (Events). |
| Keep the entries elsewhere | Alias Tilttek\Journal\Contract\JournalStoreInterface to your own store. |
| Tell the events another way | Alias Tilttek\Journal\Contract\JournalObserverInterface to your own observer. |
| Say who may write or read | Check it in the application before calling Journal. |
Services and aliases
| Id | Service | Public |
|---|---|---|
Tilttek\Journal\Journal | The journal. | yes |
Tilttek\Journal\Export\MarkdownExport | The Markdown export. | yes |
Tilttek\Journal\Contract\JournalStoreInterface | Alias of DbalJournalStore, or of InMemoryJournalStore with store: memory. | yes |
Tilttek\Journal\Contract\JournalObserverInterface | Alias of DispatchingObserver. | yes |
Tilttek\PlayerKnowledge\Knowledge | On the store of knowledge_store, when it is set. | yes |
Tilttek\JournalBundle\Infrastructure\Doctrine\JournalSchemaListener | Tagged doctrine.event_listener on postGenerateSchema, with the ORM. | no |
Tilttek\JournalBundle\Infrastructure\Privacy\JournalPrivacy | Tagged phil_privacy.exporter and phil_privacy.eraser, with the privacy bundle. | no |
Who may write or read
Journal reads each entry for one Reader — a person and the KnowledgeSnapshot of what they know — and hides from
them what is not for them. Who may draft, write, publish or remove an entry is the application's to check: the author
and the game master, as a security voter or a check in the controller decides.