class FileViewFinder implements ViewFinderInterface (View source)

Methods

void
__construct( Filesystem $files, array $paths, array $extensions = null)

Create a new file view loader instance.

string
find( string $name)

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.

void
addExtension( string $extension)

Register an extension with the view finder.

bool
hasHintInformation( string $name)

Returns whether or not the view specify a hint information.

getFilesystem()

Get the filesystem instance.

array
getPaths()

Get the active view paths.

array
getHints()

Get the namespace to file path hints.

array
getExtensions()

Get registered extensions.

Details

at line line 53
void __construct( Filesystem $files, array $paths, array $extensions = null)

Create a new file view loader instance.

Parameters

Filesystem $files
array $paths
array $extensions

Return Value

void

at line line 69
string find( string $name)

Get the fully qualified location of the view.

Parameters

string $name

Return Value

string

at line line 160
void addLocation( string $location)

Add a location to the finder.

Parameters

string $location

Return Value

void

at line line 172
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 line 190
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 line 207
void addExtension( string $extension)

Register an extension with the view finder.

Parameters

string $extension

Return Value

void

at line line 222
bool hasHintInformation( string $name)

Returns whether or not the view specify a hint information.

Parameters

string $name

Return Value

bool

at line line 232
Filesystem getFilesystem()

Get the filesystem instance.

Return Value

Filesystem

at line line 242
array getPaths()

Get the active view paths.

Return Value

array

at line line 252
array getHints()

Get the namespace to file path hints.

Return Value

array

at line line 262
array getExtensions()

Get registered extensions.

Return Value

array