NaifyView\Executor\LayoutRuntime クラス

LayoutRuntime — レイアウト定義とスロットの上書きを組み合わせる

読み込み先と対象の定義を探し、呼び出し側の差し込み内容を添えて描画する。

ASTを直接実行する経路の内部部品。通常の描画にはView::render()を使う。

プロパティ

名前型説明
private $templateLoader TemplateLoader template path resolve / load owner
private $macroRuntime MacroRuntime root macro registry owner
private $templateRecursionRuntime TemplateRecursionRuntime layout recursion guard
private $scopeBindRuntime TemplateScopeBindRuntime with binding owner

メソッド

メソッド説明
public __construct(TemplateLoader $templateLoader, MacroRuntime $macroRuntime, TemplateRecursionRuntime $templateRecursionRuntime, TemplateScopeBindRuntime $scopeBindRuntime): void インスタンスを初期化する
public renderLayout(LayoutNode $node, array $scope, array $state, callable $renderNodes): NodeRenderResult `renderLayout()` を実行する
private buildSlotOverrides(array $children): array `buildSlotOverrides()` を実行する
private findLayoutDefinition(array $children, string $defineName): ?LayoutNode `findLayoutDefinition()` を実行する