NaifyView\Compiler\CompiledGeneratedClassSourceBuilder クラス
CompiledGeneratedClassSourceBuilder — compiled mainline の Compiled Generated Class Source Builder
template を generated PHP class へ落とす compile pipeline の一部。 大きな compiler へ責務を押し込まず、source 生成・依存計画・fast path などを小さく分ける。
使用例
// Engine が warm-hit できない template を compiled artifact へ変換する時に使う。
// 通常は View / Engine 経由で呼ばれ、アプリ側から直接操作しない。
プロパティ
| 名前 | 型 | 説明 |
|---|---|---|
private
$sourceMetadataBuilder
|
CompiledGeneratedSourceMetadataBuilder |
|
private
$helperSourceBuilder
|
CompiledClassHelperSourceBuilder |
|
private
$methodSourceBuilder
|
CompiledClassMethodSourceBuilder |
|
private
$compilerVersion
|
string |
|
private
$cacheFamily
|
string |
|
private
$artifactShape
|
string |
|
private
$compileLevel
|
string |
|
private
$templateRecursionLimit
|
int |
メソッド
| メソッド | 説明 |
|---|---|
public
__construct(CompiledGeneratedSourceMetadataBuilder $sourceMetadataBuilder, CompiledClassHelperSourceBuilder $helperSourceBuilder, CompiledClassMethodSourceBuilder $methodSourceBuilder, string $compilerVersion, string $cacheFamily, string $artifactShape, string $compileLevel, int $templateRecursionLimit): void
|
インスタンスを初期化する |
public
build(string $className, string $resolvedPath, string $rootMethodName, string $mode, array $dependencyPlan, array $compiledTemplates, array $macroEntries): string
|
`build()` を実行する |
private
splitClassName(string $className): array
|
`splitClassName()` を実行する |