Radiate\View\Finder
Properties
$files
The filesystem
protected \Radiate\Filesystem\Filesystem $files
$paths
The view paths
protected array $paths
$views
The views
protected array $views
$extensions
Register a view extension with the finder
protected array $extensions
Methods
__construct
Create the finder instance
public function __construct(\Radiate\Filesystem\Filesystem $files, string|array $paths): void
Properties
$files
The filesystem instance$paths
The view paths
find
Get the fully qualified location of the view.
public function find(string $name): string
Properties
$name
The view name
findInPaths
Find the given view in the list of paths.
protected function findInPaths(string $name, array $paths): string
Properties
$name
The view name$paths
The view paths
getPossibleViewFiles
Get an array of possible view files.
protected function getPossibleViewFiles(string $name): array
Properties
$name
The view name