docs: add a name mnemonic to every module README and the root modules table
This commit is contained in:
@@ -4,6 +4,8 @@ Per-instance application container that holds the configuration, a typed service
|
||||
|
||||
`import "git.golem15.com/golem15/summercms/modules/backpack"`
|
||||
|
||||
**Name:** The one bag you pack for the beach; it carries everything the application needs: configuration, services, events and plugins.
|
||||
|
||||
## Overview
|
||||
|
||||
`backpack` plays the role of the Laravel service container that WinterCMS plugins reach through `App::make` and singleton bindings, without any process-global state: every `backpack.App` is independent, so tests and multiple instances in one process do not interfere. The generated `main` of an application loads configuration with [compass](../compass/README.md), creates the container with `backpack.New`, and hands it to [party](../party/README.md), which passes it to every plugin's Register and Boot. `backpack` deliberately does not import `party`, which keeps the dependency graph acyclic.
|
||||
|
||||
Reference in New Issue
Block a user