public function __construct(FileViewFinder $finder, $extension = 'twig') { $this->finder = $finder; $this->files = $finder->getFilesystem(); $this->extension = $extension; }
/** * Copy a FileViewFinder to a FallbackFileViewFinder * * @param \Illuminate\View\FileViewFinder $otherFinder * @return static **/ public static function fromOther(FileViewFinder $otherFinder) { $copy = new static($otherFinder->getFilesystem(), $otherFinder->getPaths(), $otherFinder->getExtensions()); if ($otherFinder instanceof FallbackFileViewFinder) { $copy->setFallbackDir($otherFinder->getFallbackDir()); } return $copy; }