public function getView(string $name): SplFileInfo
    {
        $viewFactory = app(Factory::class);

        $pattern = str_replace('.', DIRECTORY_SEPARATOR, $name);
        $path = $viewFactory->getFinder()->find($name);

        $pos = strpos($path, $pattern);

        $directory = substr($path, 0, $pos);
        $filename = substr($path, $pos);

        return $this->createSplFileInfoInstance($directory, $filename);
    }
public function getView(string $name): SplFileInfo
    {
        $viewFactory = app(Factory::class);

        $pattern = str_replace('.', DIRECTORY_SEPARATOR, $name);
        $path = $viewFactory->getFinder()->find($name);

        $pos = strpos($path, $pattern);

        $directory = substr($path, 0, $pos);
        $filename = substr($path, $pos);

        return $this->createSplFileInfoInstance($directory, $filename);
    }
public function getView ( string $ name ) : SplFileInfo { $ viewFactory = app ( Factory :: class ) ; $ pattern = str_replace ( '.' , DIRECTORY_SEPARATOR , $ name ) ; $ path = $ viewFactory -> getFinder ( ) -> find ( $ name ) ; $ pos = strpos ( $ path , $ pattern ) ; $ directory = substr ( $ path , 0 , $ pos ) ; $ filename = substr ( $ path , $ pos ) ; return $ this -> createSplFileInfoInstance ( $ directory , $ filename ) ; }
Find view.

@param string $name

@return SplFileInfo
Find view .