Application structure

An Atom application assembles the pieces that handle a request. In Atom Starter, app/Application.php tells Atom where to find page classes, which services to inject, and which modules to load. The application class also ties these pieces to its configuration and filesystem paths.

Think back to /products/42. The application registers the directory that contains ProductPage, and the page declares its URL with #[PageRoute]. A service provider can register which catalogue implementation to use. When the request matches, Atom creates the page with that service and passes the captured ID to get().

Where to make changes

Task Where to start
Register the catalogue service used by ProductPage Application and Service Providers
Resolve a constructor dependency or choose a service lifetime Dependency Injection
Load environment settings and read typed values Configuration
Resolve a directory such as @app/Pages Paths
Package a feature with its own routes and services Modules