Repository navigation
Internals Runtime Interface IRuntime
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/runtime/interface/IRuntime.php · Snapshot 8411f4287706.
Runtime state, package API classes, loader, executor and orchestrator have separate responsibilities. Dependency validation precedes package code and nested execution restores context.
use event\EventDispatcher;
use package\model\InstalledPackage;
use runtime\enums\ERuntimeStatus;interface IRuntimeNo own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| Method | Signature |
|---|---|
| create | public static function create(?InstalledPackage $package): IRuntime |
| getEventDispatcher | public function getEventDispatcher(): EventDispatcher |
| setEventDispatcher | public function setEventDispatcher(EventDispatcher $eventDispatcher): void |
| getRuntimeId | public function getRuntimeId(): int |
| getRuntimeName | public function getRuntimeName(): string |
| setRuntimeStatus | public function setRuntimeStatus(ERuntimeStatus $status): void |
| getRuntimeStatus | public function getRuntimeStatus(): ERuntimeStatus |
| getPackage | public function getPackage(): InstalledPackage |
| getRootPath | public function getRootPath(): string |
| setFlags | public function setFlags (array $flags): void |
| getFlags | public function getFlags(): array |
| setWaitFor | public function setWaitFor(array $package): void |
| getWaitFor | public function getWaitFor(): array |
| setPassable | public function setPassable(array $passable): void |
| getPassable | public function getPassable(string $name): array |
| setSharedRegistry | public function setSharedRegistry(array $shared): void |
| getSharedRegistry | public function getSharedRegistry(): array |
public static function create(?InstalledPackage $package): IRuntime;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$package |
?InstalledPackage $package |
Package identifier or InstalledPackage metadata as indicated by the declared type. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getEventDispatcher(): EventDispatcher;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setEventDispatcher(EventDispatcher $eventDispatcher): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$eventDispatcher |
EventDispatcher $eventDispatcher |
Dispatcher used for synchronous listener registration/dispatch and context propagation. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getRuntimeId(): int;Returns the identifier of the runtime. @return int
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getRuntimeName(): string;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setRuntimeStatus(ERuntimeStatus $status): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$status |
ERuntimeStatus $status |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getRuntimeStatus(): ERuntimeStatus;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getPackage(): InstalledPackage;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getRootPath(): string;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setFlags (array $flags): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$flags |
array $flags |
List of runtime flag cases; invalid non-enum entries fail normalization. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getFlags(): array;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setWaitFor(array $package): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$package |
array $package |
Package identifier or InstalledPackage metadata as indicated by the declared type. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getWaitFor(): array;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setPassable(array $passable): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$passable |
array $passable |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getPassable(string $name): array;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$name |
string $name |
Named key/label selected by this API; its exact scope is shown by the implementation trace. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function setSharedRegistry(array $shared): void;| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$shared |
array $shared |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
public function getSharedRegistry(): array;Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.
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