NaifyView\Executor\InheritanceRuntime クラス

InheritanceRuntime — テンプレート継承とブロック描画の窓口をまとめる

ルートの継承処理と個々のブロックの出力は、それぞれの担当へ委譲する。

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

プロパティ

名前型説明
private $rootRuntime InheritanceRootRuntime document root owner
private $blockRenderRuntime BlockRenderRuntime block render owner

メソッド

メソッド説明
public __construct(InheritanceRootRuntime $rootRuntime, BlockRenderRuntime $blockRenderRuntime): void インスタンスを初期化する
public renderDocument(DocumentNode $document, array $scope, array $state, callable $renderNodes): NodeRenderResult `renderDocument()` を実行する
public renderBlock(BlockNode $node, array $scope, array $state, callable $renderNodes): NodeRenderResult `renderBlock()` を実行する