NaifyView\Compiler\CompiledDependencyPlanBuilder クラス
CompiledDependencyPlanBuilder — compiled mainline の Compiled Dependency Plan Builder
template を generated PHP class へ落とす compile pipeline の一部。 大きな compiler へ責務を押し込まず、source 生成・依存計画・fast path などを小さく分ける。
使用例
// Engine が warm-hit できない template を compiled artifact へ変換する時に使う。
// 通常は View / Engine 経由で呼ばれ、アプリ側から直接操作しない。
プロパティ
| 名前 | 型 | 説明 |
|---|---|---|
private
$templatePathResolver
|
CompiledTemplatePathResolver |
|
private
$cacheProbe
|
CompiledArtifactCacheProbe |
|
private
$templateSurfacePreflight
|
TemplateSurfacePreflight |
|
private
$compilerVersion
|
string |
|
private
$cacheFamily
|
string |
|
private
$artifactShape
|
string |
|
private
$compileLevel
|
string |
|
private
$templateRecursionLimit
|
int |
メソッド
| メソッド | 説明 |
|---|---|
public
__construct(CompiledTemplatePathResolver $templatePathResolver, CompiledArtifactCacheProbe $cacheProbe, TemplateSurfacePreflight $templateSurfacePreflight, string $compilerVersion, string $cacheFamily, string $artifactShape, string $compileLevel, int $templateRecursionLimit): void
|
インスタンスを初期化する |
public
decorate(array $dependencyPlan, string $mode): array
|
`decorate()` を実行する |
public
attachFreshnessMetadata(array $dependencyPlan, array $absoluteTemplatePaths = '...'): array
|
`attachFreshnessMetadata()` を実行する |
public
withPreflightContract(array $dependencyPlan, string $templateSource, string $compileSurface): array
|
`withPreflightContract()` を実行する |
private
sanitizeForExposure(array $dependencyPlan): array
|
`sanitizeForExposure()` を実行する |
private
buildPreflightContract(string $templateSource): array
|
`buildPreflightContract()` を実行する |
private
buildPreflightSummary(array $preflightContract): string
|
`buildPreflightSummary()` を実行する |
private
normalizePreflightContractMarkers(array $surface): array
|
`normalizePreflightContractMarkers()` を実行する |