public function handle($file)
    {
        foreach ($this->view_extensions as $ext => $handler) {
            if ($file->exists($ext)) {
                $file = $file->withExtension($ext);
                $file->setMime($handler[1]);
                $file->setFound();
                $handle = $handler[0];
                if (!is_callable($handle)) {
                    $handle = [$this, $handle];
                }
                return call_user_func($handle, $file);
            }
        }

        return $file;
    }
public function handle($file)
    {
        foreach ($this->view_extensions as $ext => $handler) {
            if ($file->exists($ext)) {
                $file = $file->withExtension($ext);
                $file->setMime($handler[1]);
                $file->setFound();
                $handle = $handler[0];
                if (!is_callable($handle)) {
                    $handle = [$this, $handle];
                }
                return call_user_func($handle, $file);
            }
        }

        return $file;
    }
public function handle ( $ file ) { foreach ( $ this -> view_extensions as $ ext => $ handler ) { if ( $ file -> exists ( $ ext ) ) { $ file = $ file -> withExtension ( $ ext ) ; $ file -> setMime ( $ handler [ 1 ] ) ; $ file -> setFound ( ) ; $ handle = $ handler [ 0 ] ; if ( ! is_callable ( $ handle ) ) { $ handle = [ $ this , $ handle ] ; } return call_user_func ( $ handle , $ file ) ; } } return $ file ; }
handles text type file, such as html, php, text, and md.

@param FileInfo $file
@return FileInfo
handles text type file such as html php text and md .