NaifyView\Dialect\Naify\NaifyCallableRuntime クラス
NaifyCallableRuntime — Naify dialect の Naify Callable Runtime
Native template 構文の parser / evaluator / runtime contract を担当する。 Twig / Smarty 互換文化を混ぜず、Naify として持つ構文 surface をここで固定する。
使用例
// Naify dialect の parser / expression / runtime helper として使う。
// 通常は NaifyParser や compiler/executor から間接的に呼ばれる。
プロパティ
| 名前 | 型 | 説明 |
|---|---|---|
private
$callableProviders
|
array |
external callable providers |
メソッド
| メソッド | 説明 |
|---|---|
public
__construct(array $callableProviders = '...'): void
|
インスタンスを初期化する |
public
invokeCallable(string $callableName, array $arguments, array $scope): mixed
|
`invokeCallable()` を実行する |
private
supportsProviderCallable(object $callableProvider, string $callableName): bool
|
`supportsProviderCallable()` かを返す |