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