The Game Panel Design record
The Game Panel

Proposals

Proposals for how an area should work, argued before it is built. A decided proposal is frozen: later thinking arrives as a new document, never as an edit.

Accepted

8 · frozen

RFC-0001 Dependency injection container Updated by RFC-0006, RFC-0007, RFC-0018, RFC-0019 I will give the panel a dependency injection container that constructs objects and supplies their dependencies. It will resolve classes automatically from their... RFC-0002 Configuration objects Updated by RFC-0004 I will give the panel a configuration component in which each configuration is an object of a class unique to it, registered against a module and a name, held i... RFC-0003 Database component Updated by RFC-0004, RFC-0012 I will give the engine a database component built directly on PDO. Any number of named connections will be configured, one of them the primary connection used w... RFC-0004 TOML configuration loading Updated by RFC-0005, RFC-0008 I will read configuration from TOML files: a main file, drop-in overrides applied in order, and one file for each enabled module, merged into a single configura... RFC-0005 Paths value object Updated by RFC-0008 The engine needs its files in five places: configuration, application data, installed modules, the cache and logs. I will give it one immutable object, Paths, t... RFC-0006 Container improvements Updated by RFC-0007, RFC-0018, RFC-0019 I will change how the container caches shared instances and resolves classes. Shared instances will be kept in one instance cache type, used once with strong re... RFC-0007 Binding lifetimes Updated by RFC-0018, RFC-0019 I will replace the shared flag on a binding with a lifetime of three states: Process, resolved once and held until the worker restarts; Cycle, resolved once per... RFC-0019 Deferred construction I will remove Ghost and GhostResolver, so a lazy proxy is the only way the container defers construction. A lazy proxy will never be cached, whatever the lifeti...

Proposed

10 · open for comment

RFC-0008 Filesystems I will have the engine reach its files through named filesystems, held in an immutable catalogue that resolves them by name, and give it three: configuration, d... RFC-0009 Events I will add a synchronous, in-process event dispatcher in which any object can be an event. Listeners will be registered against an event type by handler referen... RFC-0010 HTTP transport I will build the engine's HTTP layer from immutable request and response objects, a middleware pipeline wrapped around a terminal handler, and a route table the... RFC-0011 Views I will render HTML on the server from Twig templates, drawn from an ordered source chain in which later registration wins, so a theme or a module can replace an... RFC-0012 PostgreSQL database layer I will move the database component onto PostgreSQL and put a compiler between its objects and the SQL they become. Each query and schema object will be a node d... RFC-0013 Entities I will add a thin layer over the database for working with entities: an entity identifier type for each entity, an entity map holding the entities of one unit o... RFC-0014 Sessions I will add server-side sessions, keyed by a cookie and stored in the database, with flash state carrying a value from the request that writes it to the request... RFC-0015 Module system I will give the engine its extension mechanism, in which a module is either bundled inside the binary or installed as a Composer package and is described by the... RFC-0016 Module scopes I will make a resolution know which module's code it is constructing. The container will keep a stack of module scopes, pushing a binding's owner while that bin... RFC-0017 Migration runner I will run each module's migrations in module dependency order, one transaction for each deployment, from management commands that hold a lock while they run. A...

Withdrawn

1 · never decided