Skip to content

Internals Runtime Api RuntimeLinkerAPI

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

runtime\api\RuntimeLinkerAPI

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/runtime/api/RuntimeLinkerAPI.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 runtime\enums\ERuntimeFlags;
use runtime\interface\api\IRuntimeLinkerCapabilities;

RuntimeLinkerAPI

Declaration and architectural role

abstract class RuntimeLinkerAPI extends RuntimeAPI implements IRuntimeLinkerCapabilities

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
$links public array $links = []; Used by getLinks(), createLink().

Method index

Method Signature
environmentSetup public function environmentSetup(): void
getLinks public function getLinks(): array
createLink public function createLink(string $name, string $path): void

environmentSetup

Source line 8

public function environmentSetup(): void

Delegates to setRuntimeFlag().

Implementation, validation guards and interaction order
public function environmentSetup(): void
    {
        parent::environmentSetup();
        $this->setRuntimeFlag(ERuntimeFlags::RuntimeLinker);
        $this->setRuntimeFlag(ERuntimeFlags::CreatePassable);
    }

getLinks

Source line 14

public function getLinks(): array

Return expressions (including local callbacks): $this->links.

Implementation, validation guards and interaction order
public function getLinks(): array { return $this->links; }

createLink

Source line 15

public function createLink(string $name, string $path): void

Parameters

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.
$path string $path Filesystem or route path as defined by the owning component; no universal path normalization is implied.

State writes: $this->links[$name].

Implementation, validation guards and interaction order
public function createLink(string $name, string $path): void
    {
        $this->links[$name] = $this->rootPath . '/' . ltrim($path, '/');
    }

Related types

Clone this wiki locally