interface ViewFinderInterface

Constants

HINT_PATH_DELIMITER

Hint path delimiter value.

Methods

string
find(string $view)

Get the fully qualified location of the view.

void
addLocation(string $location)

Add a location to the finder.

void
addNamespace(string $namespace, string|array $hints)

Add a namespace hint to the finder.

void
prependNamespace(string $namespace, string|array $hints)

Prepend a namespace hint to the finder.

$this
replaceNamespace(string $namespace, string|array $hints)

Replace the namespace hints for the given namespace.

void
addExtension(string $extension)

Add a valid view extension to the finder.

void
flush()

Flush the cache of located views.

Details

at line 20
string find(string $view)

Get the fully qualified location of the view.

Parameters

string $view

Return Value

string

at line 28
void addLocation(string $location)

Add a location to the finder.

Parameters

string $location

Return Value

void

at line 37
void addNamespace(string $namespace, string|array $hints)

Add a namespace hint to the finder.

Parameters

string $namespace
string|array $hints

Return Value

void

at line 46
void prependNamespace(string $namespace, string|array $hints)

Prepend a namespace hint to the finder.

Parameters

string $namespace
string|array $hints

Return Value

void

at line 55
$this replaceNamespace(string $namespace, string|array $hints)

Replace the namespace hints for the given namespace.

Parameters

string $namespace
string|array $hints

Return Value

$this

at line 63
void addExtension(string $extension)

Add a valid view extension to the finder.

Parameters

string $extension

Return Value

void

at line 70
void flush()

Flush the cache of located views.

Return Value

void