Repository navigation
Internals Router Http GlobalsRequestProvider
Stefan Crkvenjakov edited this page Oct 7, 2026
·
1 revision
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/router/http/GlobalsRequestProvider.php · Snapshot 8411f4287706.
Routing separates definition, HTTP request snapshot, matching, method policy, execution and error responses. Collaborators can be replaced through constructor injection.
use router\interface\IRequest;
use router\interface\IRequestProvider;final class GlobalsRequestProvider implements IRequestProviderNo own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| current | public function current(): IRequest |
public function current(): IRequestReturn expressions (including local callbacks): new Request($_SERVER, $_POST, $body).
Implementation, validation guards and interaction order
public function current(): IRequest
{
$body = '';
if (str_starts_with(strtolower($_SERVER['CONTENT_TYPE'] ?? ''), 'application/x-www-form-urlencoded')) {
$body = file_get_contents('php://input') ?: '';
}
return new Request($_SERVER, $_POST, $body);
}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