Server Structural Phase
Archibald uses an "Inversion of Control" pattern where the project implementation (e.g., templates/shop) extends the framework's base classes.
The Inheritance Model
- ShopServer: Extends
CoreServer. It overrides theinit()method to register project-specific routes, controllers, and services. - RenderController: Extends Archibald's
BaseController(orDefaultRenderController). It hooks into Hapi's lifecycle to handle global errors and trigger the project-specificRenderService.