getRegistryPathChunks()
getRegistryPathChunks(string $source, integer|null $directoryIndex = null) : \Phug\Renderer\Partial\iterable
Yield list of path chunks for registry for a given path.
Parameters
| string | $source | |
| integer|null | $directoryIndex |
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 |