Architecture · V4.0.1

Explicit by design: understanding Corevia modules

Explore why named modules, explicit action registration, and runtime profiles make application composition easier to inspect.

Explicit by design

Corevia applications register module dependencies and action names explicitly. The runtime does not discover modules by scanning directories. This makes the application graph inspectable, but it also means generating a class is not enough to make it callable.

Register the module

Add a ModuleDefinition to config/modules.php and choose a runtime profile. The catalog declares a stable ID, class, profile tags, and dependencies.

Register the action

Inside the module register method, call $context->actions() with a stable name and action class. A flow can then refer to that name.

Know the boundary

Profile selection enables adapters; it does not authorize callers. HTTP gateways still need allowlists and real authorization.

Read the module guide.

Updated 2026-11-22 · 4.0.1Suggest an improvement