\Phug\Compiler\LocatorFileLocator

Summary

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

Methods

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

normalize()

normalize(  $path) 

Parameters

$path