Skip to content

Internals Runtime Enums ERuntimeFlags

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

runtime\enums\ERuntimeFlags

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/runtime/enums/ERuntimeFlags.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.

ERuntimeFlags

Declaration and architectural role

enum ERuntimeFlags

Constants, enum cases, traits and properties

Declarations below preserve visibility, type, default and modifiers exactly. A typed property without an initializer remains uninitialized until its constructor or another method assigns it. Mutable fields belong to this instance unless marked static; readonly fields can be initialized once. Constructor-promoted properties are also listed below.

Member Declaration Purpose or source contract
case CreatePassable case CreatePassable; The runtime will not be destroyed after execution, and will be made accessible to other runtimes within same package. This flag can be within any runtime inside your package.
case AccessOtherInstances case AccessOtherInstances; Access other runtimes within the same package. These runtimes must be executed before the runtime with this flag. They must have CreatePassable flag set. This flag can be within any runtime inside your package.
case WaitForPackage case WaitForPackage; Marks a runtime that waits for another package. The scheduler resolves environment waits before setup and setup waits before main, detecting missing targets and cycles instead of relying on a retry limit.
case EventDispatcher case EventDispatcher; Use it to get global event dispatcher. This flag can be within any runtime inside your package.
case UseShared case UseShared; Use it to get global shared data. Shared data is accessible with $this->shared[Package][data] or $this->getShared(package, data). This flag can be within any runtime inside your package.
case CommandProvider case CommandProvider; Tells RuntimeExecutor that this package provides CLI commands. This flag can be within any runtime inside your package.
case Controller case Controller; Tells RuntimeHandler that this package provides controllers or controller factories. If you are not using the official RuntimeControllerAPI base class, you must implement IRuntimeControllerCapabilities interface.
case Router case Router; Tells RuntimeExecutor that this package provides routers. If you are not using the official RuntimeRouterAPI base class, you must implement IRuntimeRouterCapabilities interface.
case RuntimeLinker case RuntimeLinker; Tells RuntimeExecutor that this runtime is providing other runtimes. If you are not using the official RuntimeLinkerAPI base class, you must implement IRuntimeLinkerCapabilities interface. The best practice is to call '$this->createLink()' inside your runtimes main() method.

Clone this wiki locally