\Phug\Compiler\LocatorFileLocator

Summary

Methods
Properties
Constants
normalize()
locate()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getConsistentPaths()
getFullPath()
No private properties found
N/A

Methods

normalize()

normalize(string  $path) : string

Normalize the string of a relative or absolute path.

Parameters

string $path

the path to normalize.

Returns

string

locate()

locate(string  $path, array  $locations, array  $extensions) : string

Translates a given path by searching it in the passed locations and with the passed extensions.

Parameters

string $path

the file path to translate.

array $locations

the directories to search in.

array $extensions

the file extensions to search for (e.g. ['.jd', '.pug'].

Returns

string

getConsistentPaths()

getConsistentPaths(  $paths) 

Parameters

$paths

getFullPath()

getFullPath(  $location,   $path,   $extension) 

Parameters

$location
$path
$extension