NaifyView\Compiler\CompiledClassCompileSession クラス
CompiledClassCompileSession — compiled mainline の Compiled Class Compile Session
template を generated PHP class へ落とす compile pipeline の一部。 大きな compiler へ責務を押し込まず、source 生成・依存計画・fast path などを小さく分ける。
使用例
// Engine が warm-hit できない template を compiled artifact へ変換する時に使う。
// 通常は View / Engine 経由で呼ばれ、アプリ側から直接操作しない。
プロパティ
| 名前 | 型 | 説明 |
|---|---|---|
private
$dependencyPlan
|
array |
current compile cycle dependency plan |
private
$macroMethods
|
array |
|
private
$layoutMethods
|
array |
|
private
$blockMethods
|
array |
メソッド
| メソッド | 説明 |
|---|---|
public
resetBundleState(array $dependencyPlan): void
|
`resetBundleState()` を実行する |
public
reset(array $dependencyPlan): void
|
`reset()` を実行する |
public
dependencyPlan(): array
|
`dependencyPlan()` を実行する |
public
setDependencyPlan(array $dependencyPlan): void
|
`setDependencyPlan()` の値を設定する |
public
snapshotDependencyPlan(): array
|
`snapshotDependencyPlan()` を実行する |
public
addMacroMethod(string $templatePath, string $macroName, array $entry): void
|
`addMacroMethod()` を追加する |
public
hasMacroMethod(string $templatePath, string $macroName): bool
|
`hasMacroMethod()` かを返す |
public
findMacroMethod(string $templatePath, string $macroName): ?array
|
`findMacroMethod()` を実行する |
public
macroMethodEntries(): array
|
`macroMethodEntries()` を実行する |
public
addLayoutMethod(string $templatePath, string $layoutName, string $methodName): void
|
`addLayoutMethod()` を追加する |
public
hasLayoutMethod(string $templatePath, string $layoutName): bool
|
`hasLayoutMethod()` かを返す |
public
findLayoutMethod(string $templatePath, string $layoutName): ?string
|
`findLayoutMethod()` を実行する |
public
addBlockMethod(string $templatePath, string $blockName, string $methodName): void
|
`addBlockMethod()` を追加する |
public
findBlockMethod(string $templatePath, string $blockName): ?string
|
`findBlockMethod()` を実行する |