Repository navigation
Internals Bootstrap
Framework Internals · Developer guide
Entry points awt and public/index.php establish BASE_PATH, then load awt_dirMap.php and bootstrap/boot.php. Directory mapping creates missing cache, compiled, temp, uploads and package-storage directories. Constants carry absolute paths with trailing separators except ROOT.
When DB_TYPE is empty, HTTP exits with an installation message; CLI loads only autoloading and its handler. Installed boot loads configuration, autoloading, domain/error helpers, creates the dispatcher, fetches settings, constructs default routes and manager, registers dynamic route events, defines HOSTNAME and shared AWT settings, optionally includes development handling, executes packages, then handles routing or starts the CLI.
flowchart LR
Entry[awt or public/index.php] --> Map[Directory constants]
Map --> Config[Database and framework config]
Config --> Empty{DB_TYPE empty?}
Empty -->|yes CLI| Install[Installer command loop]
Empty -->|yes HTTP| Message[Not installed message]
Empty -->|no| Settings[Settings and dispatcher]
Settings --> Packages[Runtime loader and scheduler]
Packages --> Routes[Router manager]
Routes --> HTTP[Response emission]
Routes --> CLI[CLI handler loop]
Installed CLI currently bootstraps packages before replacing the CLI handler, and calls getDomainName() before supplying CLI REQUEST_URI. It depends on HTTP_HOST even in CLI. Some warnings are suppressed by the default config; this should not be mistaken for a fully independent headless bootstrap. No .env parsing or Composer autoload is performed.
Error templates are executable Blade/PHP templates under public/errors; their source reference pages describe expected variables and rendering. DB configuration values are intentionally not reproduced: DB_TYPE, DB_NAME, DB_HOSTNAME, DB_USERNAME and DB_PASSWORD are the consumed constants. AWT_VERSION is 27.0.0, DEBUG controls details, PACKAGE_MAX_LOAD_TRY is retained but unused by the dependency scheduler, and development upload is additionally gated on a defined DEV constant.
-
Awt —
awt -
Awt_data-Config-Awt_config —
awt_data/config/awt_config.php -
Awt_data-Config-Awt_dirMap —
awt_data/config/awt_dirMap.php -
Awt_src-Functions-ErrorHandler —
awt_src/functions/ErrorHandler.fun.php -
Awt_src-Functions-Awt_autoLoader —
awt_src/functions/awt_autoLoader.fun.php -
Awt_src-Functions-Awt_getDomain —
awt_src/functions/awt_getDomain.fun.php -
Bootstrap-Boot —
bootstrap/boot.php -
Bootstrap-Cli-Handler —
bootstrap/cli/handler.php -
Bootstrap-Dev —
bootstrap/dev.php -
Bootstrap-Event-Dispatcher —
bootstrap/event/dispatcher.php -
Bootstrap-Packages-Loader —
bootstrap/packages/loader.php -
Bootstrap-Routes-Default —
bootstrap/routes/default.php -
Bootstrap-Routes-Manager —
bootstrap/routes/manager.php -
Bootstrap-Routes-Router —
bootstrap/routes/router.php -
Bootstrap-Settings-Settings —
bootstrap/settings/settings.php -
Public-Errors-403.awt —
public/errors/403.awt.php -
Public-Errors-404.awt —
public/errors/404.awt.php -
Public-Errors-Debug.awt —
public/errors/debug.awt.php -
Public-Errors-Error.awt —
public/errors/error.awt.php -
Public-Index —
public/index.php -
Setting-Config —
awt_src/classes/setting/Config.php -
Setting-Settings —
awt_src/classes/setting/Settings.php -
Setting-Model-SettingModel —
awt_src/classes/setting/model/SettingModel.php -
Database configuration constants —
awt_data/config/awt_db.php(private values omitted).
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes