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;

    }
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;

    }
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 ; }
Copy a FileViewFinder to a FallbackFileViewFinder

@param \Illuminate\View\FileViewFinder $otherFinder
@return static
Copy a FileViewFinder to a FallbackFileViewFinder