Skip to content

Internals Runtime RuntimeCreator

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

runtime\RuntimeCreator

Framework Internals · Subsystem overview · Developer guide

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

Imports and dependencies

use package\model\InstalledPackage;
use runtime\interface\IRuntime;
use runtime\interface\IRuntimeCreator;

RuntimeCreator

Declaration and architectural role

readonly class RuntimeCreator implements IRuntimeCreator

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
Constructor-promoted public function __construct(private IRuntime $runtimeBase) Initialized from the constructor argument; default expression is evaluated when the argument is omitted.

Method index

Method Signature
__construct public function __construct(private IRuntime $runtimeBase)
create public function create(InstalledPackage $packages): IRuntime

__construct

Source line 11

public function __construct(private IRuntime $runtimeBase);

Parameters

Parameter Type, modifiers and default Purpose
$runtimeBase private IRuntime $runtimeBase Operation input; the exact use, validation and propagation are shown in the implementation trace.

Concrete no-op/default hook: this method performs no work. Override it where the lifecycle or extension contract calls for behavior.

create

Source line 14

public function create(InstalledPackage $packages): IRuntime

Parameters

Parameter Type, modifiers and default Purpose
$packages InstalledPackage $packages Operation input; the exact use, validation and propagation are shown in the implementation trace.

Return expressions (including local callbacks): $this->runtimeBase::create($packages).

Implementation, validation guards and interaction order
public function create(InstalledPackage $packages): IRuntime
    {
        return $this->runtimeBase::create($packages);
    }

Related types

Clone this wiki locally