Class PathResolver
Class that resolves possible paths based on various factors.
Methods summary
public
|
|
public
|
#
addPath( string $path )
Add a main path.
Parameters
|
public
|
#
mount( string $location, string $path )
Mount a path onto a location.
Mount a path onto a location.
Parameters
|
public
array
|
#
resolve( string $path )
Resolve possible paths for a relative path.
Resolve possible paths for a relative path.
Parameters
Returns
array
|
public
string[]
|
#
locate( string|string[] $basenameOrNames, string|string[] $extensionOrExtensions )
Based on a set of basenames (filename without extension) and a set of
possible extensions, find the files that exist.
Based on a set of basenames (filename without extension) and a set of
possible extensions, find the files that exist.
Parameters
- $basenameOrNames
- $extensionOrExtensions
Returns
string[]
|
Properties summary
protected
string[]
|
$paths
|
|
protected
string[][]
|
$mounts
External paths mounted onto locations on the main path.
External paths mounted onto locations on the main path.
|
|