\Phug\CompilerLocatorInterface

Interface LocatorInterface.

An interface for locators that translate given file paths to full fill paths.

Summary

Methods
Constants
locate()
No constants found
No protected methods found
N/A
No private methods 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