FACADE
FACADE
Facade for rendering fallback.
$locator : \Phug\Compiler\Locator\FileLocator
Locator to resolve template file paths.
findCachePathInRegistry(string $path, array $registry, array<mixed,string> $extensions = array()) : string|false
Find the path of a cached file for a given path in a given registry.
string | $path | path to find in the registry |
array | $registry | registry data array |
array<mixed,string> | $extensions | extensions to try to add to the file path if not found |
findCachePathInRegistryFile(string $path, string $registryFile, array<mixed,string> $extensions = array()) : string|false
Find the path of a cached file for a given path in a given registry file (that may not exist).
string | $path | path to find in the registry |
string | $registryFile | registry file path |
array<mixed,string> | $extensions | extensions to try to add to the file path if not found |
tryExtensionsOnFileKey(array $registry, string $key, array<mixed,string> $extensions) : boolean|mixed
Try to append extension to find a key in a given array if it's file registry key.
array | $registry | |
string | $key | |
array<mixed,string> | $extensions |
findInRegistry(string $path, array $registry, array<mixed,string> $extensions) : string|array|false
Find raw entry of a cached file for a given path in a given registry.
string | $path | path to find in the registry |
array | $registry | registry data array |
array<mixed,string> | $extensions | extensions to try to add to the file path if not found |
getLocator() : \Phug\Compiler\Locator\FileLocator
Lazy loaded the file locator.