NaifyView\Runtime\CompiledTemplateStateRuntime クラス
CompiledTemplateStateRuntime — generated runtime ABI の Compiled Template State Runtime
compiled template class から呼ばれる runtime surface。 compiler が生成する PHP と対になるため、変更時は generated code との互換を意識する。
使用例
// generated PHP class から呼ばれる runtime ABI。
// compiler が吐いたコードと対になるため、公開 API として直接使わない。
メソッド
| メソッド | 説明 |
|---|---|
public
createTemplateState(string $templatePath, int $recursionLimit): array
|
`createTemplateState()` を実行する |
public
enterTemplateState(array $state, string $templatePath, string $relation, int $defaultRecursionLimit): array
|
`enterTemplateState()` を実行する |
public
resolveBlockOverride(array $state, string $blockName): ?array
|
`resolveBlockOverride()` を実行する |
private
normalizeTemplatePath(string $templatePath): string
|
`normalizeTemplatePath()` を実行する |
private
appendTemplateStackTrace(string $trace, string $templatePath): string
|
`appendTemplateStackTrace()` を実行する |
private
buildTemplateStackForError(string $trace, string $currentTemplatePath, string $templatePath): array
|
`buildTemplateStackForError()` を実行する |